Search code examples
ssissql-server-2014

How to preserve the number of errors at the level of the package in SQL or .txt file?


This is my package.

SSIS package

Does anyone know how to preserve the number of errors at the level of the package in SQL or .txt file? I'm new in SSIS. Thank you.


Solution

  • Go to Event Handlers tab then select OnError from the dropdown. Here you can send an email on any error or you can develop your own custom logic to log errors into a DB or write them to a text file.

    Also, you can choose from existing logging mechanisms available in SSIS. Click on the menu item "SSIS", you will see the first option as Logging then you will see different options to log errors/warnings.

    Hope this helps!