简体   繁体   English

动态依赖查看 SQL 和 SSIS 包

[英]Dynamic dependency view SQL and SSIS packages

In my enterprise project we have nearly 800 tables with 7 staging areas.在我的企业项目中,我们有近 800 个表和 7 个暂存区。 We have developed nearly 100 packages to implement the DW.我们已经开发了近 100 个包来实现 DW。

Business users constantly chaging the requirements after completing all the packages like table/column names, PK/FK columns with many other changes due to business requirements.业务用户在完成所有包(如表/列名称、PK/FK 列)后不断更改需求,并由于业务需求而进行了许多其他更改。

Being changes in the table structure we need to refresh all the packages related to the corresponding talbes changes.由于表结构的变化,我们需要刷新与相应的表更改相关的所有包。

Now, sometimes we are missing the changes to packages due to lack of which package will effect of changes to which table.现在,有时我们会因为缺少哪个包会影响哪个表的更改而错过了对包的更改。

So I need to know is there any process to track on pakcage dependency so we can easily know on changing any table structure we can directly know which pakcage will effect and needs to setup new metadata.所以我需要知道是否有任何过程可以跟踪包依赖关系,以便我们可以轻松知道更改任何表结构,我们可以直接知道哪个包会影响并需要设置新的元数据。

thanks谢谢

prav真理

Each dtsx file is xml, so you could attempt to parse properties of whatever tasks you are using.每个 dtsx 文件都是 xml,因此您可以尝试解析您正在使用的任何任务的属性。 But when they change the format, your code will break.但是当他们更改格式时,您的代码就会中断。

.Net code can load packages into an Application object and you can get at the package that way: http://msdn.microsoft.com/en-us/library/ms211665%28v=SQL.90%29.aspx . .Net 代码可以将包加载到 Application 对象中,您可以通过以下方式获取包: http : //msdn.microsoft.com/en-us/library/ms211665%28v=SQL.90%29.aspx

You could also create a documentation database/application and make that part of your deployment and change process.您还可以创建一个文档数据库/应用程序,并将其作为部署和更改过程的一部分。

If you kept all your sql code in stored procedures you could query dependencies in sql.如果您将所有 sql 代码保存在存储过程中,您就可以在 sql 中查询依赖项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM