找出依赖给定 table 的 SSIS 包

Find out the SSIS packages that are dependent on a given table

有什么方法可以获取依赖于给定 table 的 SSIS 包的列表?

我有大约 100 多个 SSIS 包,但我不知道哪个 table 与哪个包相关。我不可能打开每个包搜索需要的table.

您可以试试这个查询:

Select 
SSIS.name As PackageName 
,SSIS.description As PackageDescription 
,SSIS.createdate As PackageCreateDate  
,SSIS.ownersid 
,(Case SSIS.packagetype
    when 0 then 'Undefined'
    when 1 then 'SQL Server Import and Export Wizard'
    when 2 then 'DTS Designer in SQL Server 2000'
    when 3 then 'SQL Server Replication'
    when 5 then 'SSIS Designer'
    when 6 then 'Maintenance Plan Designer or Wizard'
End) As PackageType 
,(Case SSIS.packageformat
    when 0 then 'SSIS 2005 version'
    when 1 then 'SSIS 2008 version'
End) As PackageFormat 
,CAST(CAST(SSIS.packagedata AS VARBINARY(MAX)) AS XML) PackageXML
From 
[msdb].[dbo].[sysssispackages] As SSIS

我试过了,得到了我的问题列表。

简单搜索 SSIS 项目中的所有文件:

在 SSIS 中打开解决方案并键入 CTRL+SHIFT+F

然后键入 table/view 的名称。您将获得依赖于此 table/view 的所有对象,包括使用它的 SSIS 包。