Skip to content

Instantly share code, notes, and snippets.

@matt40k
Created January 4, 2016 13:17
Show Gist options
  • Save matt40k/abc76bfdc3bfc45213ea to your computer and use it in GitHub Desktop.
Save matt40k/abc76bfdc3bfc45213ea to your computer and use it in GitHub Desktop.
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