question

siera_gld avatar image
siera_gld asked

Query for Chronological Order of SSIS Package

I have an SSIS package and I have enabled logging. I need to query the package and have it list all of the steps that are in the package. The sysssispackages table and the sysssislog is not very transaparent about how this could be done. has anyone here taken this on?
ssisreportinglogging
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
derekman avatar image
derekman answered
I have never attempted this, but based on your post you are storing the packages in the msdb database. The sysssispackages table contains the column package data which contains the actual package. Again I have not attempted to do this, but you could convert the package data to XML and then shred the XML to extract the tasks. This query will convert the package data to XML: SELECT CONVERT(XML, CONVERT(VARBINARY(MAX), packagedata)) AS pkg FROM msdb.dbo.sysssispackages
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.