question

abbasgreatus avatar image
abbasgreatus asked

Event Handler

Why to use even handlers when you can do redirect in control flow by using precedence constraints?
ssis
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Magnus Ahlkvist avatar image
Magnus Ahlkvist answered
I'd say Event Handlars in SSIS are there to perform certain tasks when an event occurs - like logging execution status. As an example: If you have a package which performs a number of tasks, and you want to log the execution of each task to a Sql table, you probably don't want to flood your package with Execute SQL tasks. Instead, you could add an OnPostExecute event handler for the executables you want to log completion of. Also, you might want to continue to the next task in a control flow even if the preceeding task failed. Then you'd add an OnError event handler for the executable to handle the error but still keep going to the next task in the control flow.
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.