使用 T-SQL 从 sql server 2019 中查找 SSIS 文件的任务名称或查找 xml ssis 包的代码

Find Task names of an SSIS file or Find xml code of an ssis package from sql server 2019 using T-SQL

我公司有一个 Windows 服务器运行 SQL Server 2019 实例。我已经使用一些 SSIS 包部署了一个集成服务解决方案(项目部署模型)。我想知道是否有任何方法可以从包中获取数据流任务名称,或者获取 xml 文件主体以便使用 T-SQL 提取名称。如果上述 none 是可能的,我想知道当您在 SQL 服务器中部署解决方案时,实际的 dtsx 文件存储在 Windows 服务器中的哪个目录中。我已经搜索了很多上述内容,但找不到任何答案。 提前致谢。

How is the package deployed? If it's File System, you could likely do something like Powershell and SQL. I can't, personally, remember if packages deployed in msdb are encrypted (I haven't used the deployment method since 2012), however, if they are deployed via SSISDB you won't be able to query the packages stored in the database as they are all encrypted. You'd need to inspect the source packages (in your source controlled project).

来自