Created
June 2, 2014 15:44
-
-
Save billinkc/e511ef08fff844f078ce to your computer and use it in GitHub Desktop.
SSIS failed execution query
This file contains 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
-- Find all messages associated to the last failing run | |
SELECT | |
OM.operation_message_id | |
, OM.operation_id | |
, OM.message_time | |
, OM.message_type | |
, OM.message_source_type | |
, OM.message | |
FROM | |
SSISDB.catalog.operation_messages AS OM | |
WHERE | |
OM.operation_id = | |
( | |
-- Find the last failing operation | |
-- lazy assumption that biggest operation | |
-- id is last. Could be incorrect if a long | |
-- running process fails after a quick process | |
-- has also failed | |
SELECT | |
MAX(OM.operation_id) | |
FROM | |
SSISDB.catalog.operation_messages AS OM | |
WHERE | |
OM.message_type = 120 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment