Created
January 4, 2016 13:17
-
-
Save matt40k/abc76bfdc3bfc45213ea to your computer and use it in GitHub Desktop.
Ripped from Jamie Thomson - http://sqlblog.com/blogs/jamie_thomson/archive/2012/10/17/querying-the-ssis-catalog-here-s-a-handy-query.aspx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT event_message_id,MESSAGE,package_name,event_name,message_source_name,package_path,execution_path,message_type,message_source_type | |
FROM ( | |
SELECT em.* | |
FROM SSISDB.catalog.event_messages em | |
WHERE em.operation_id = (SELECT MAX(execution_id) FROM SSISDB.catalog.executions) | |
AND event_name NOT LIKE '%Validate%' | |
)q | |
/* Put in whatever WHERE predicates you might like*/ | |
--WHERE event_name = 'OnError' | |
--WHERE package_name = 'Package.dtsx' | |
--WHERE execution_path LIKE '%<some executable>%' | |
ORDER BY message_time DESC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment