是否可以找到 SSIS 包中使用的所有表的列表?

编程入门 行业动态 更新时间:2024-10-27 18:17:55
本文介绍了是否可以找到 SSIS 包中使用的所有表的列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我需要找到 SSIS 包中使用的所有表的列表.我知道的一种方法是在 textpad 中打开包并搜索表格.但是,是否有任何可靠且快速的方法可以使用 C# 或其他一些技术来做到这一点?

I need to find the list of all the tables used in a SSIS package. One way that I know of is to open the package in a textpad and search for the tables. But is there any reliable and fast way to do this using C# or some other technology?

推荐答案

我不确定是否有可靠的方法来做到这一点.例如,表可以被变量引用,这些变量可以在运行时更改值或通过包配置或数据库中的值进行修改.因此,虽然您可以查看 XML 代码以查找表的提及,但您不能保证对于任何给定的包都是 100% 正确的.您可能会在包执行时运行类似 Profiler 的程序,然后查看输出以查看访问和/或修改了哪些表 - 然而,这将是一项非常手动的任务.

I'm not sure there is a reliable way to do this. For example, tables can be referenced by variables that can change value at runtime or be amended via package configurations or values in a database. So while you could look through the XML code for mentions of tables, you could not guarantee with would be 100% correct for any given package. You could possibly look at running something like Profiler while the package is executing and then go through the output to see what tables were accessed and/or amended - this would be a very manual task however.

更多推荐

是否可以找到 SSIS 包中使用的所有表的列表?

本文发布于:2023-10-27 16:19:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1533904.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:可以找到   包中   列表   SSIS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!