是否可以找到 SSIS 包中使用的所有表的列表?
我需要找到 SSIS 包中使用的所有表的列表。我知道的一种方法是在文本板中打开包并搜索表格。但是是否有任何可靠且快速的方法可以使用 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定是否有可靠的方法来做到这一点。例如,表可以由变量引用,这些变量可以在运行时更改值,或者通过包配置或数据库中的值进行修改。因此,虽然您可以查看 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.