SSIS Error Messages

SQL Server

You can use this simple query to get the last error message generated in SQL Server Integration Services (SSIS). You might also want to use this base query to configure email alerts, etc.

FROM ssisdb.[catalog].[event_messages]
WHERE event_name = 'OnError' AND 
      operation_id IN (SELECT MAX(operation_id)
                       FROM ssisdb.[catalog].[event_messages]
                       WHERE event_name = 'OnError')
ORDER BY message_time ASC;

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.