How to: Add an Event Handler to a Package
A package can include event handlers that respond to the events that executables raise. For more information about executables, see Integration Services Packages, Integration Services Tasks and Integration Services Containers.
To create an event handler
In Business Intelligence Development Studio, open the Integration Services project that contains the package you want.
In Solution Explorer, double-click the package to open it.
Click the Event Handlers tab.
In the Executable list, select the executable for which you want to create an event handler.
In the Event handler list, select the event handler you want to build.
Click the link on the design surface of the Event Handler tab.
Add control flow items to the event handler, and connect items using a precedence constraint by dragging the constraint from one control flow item to another. For more information, see Designing Package Control Flow.
Optionally, add a Data Flow task, and on the design surface of the Data Flow tab, create a data flow for the event handler. For more information, see Designing Package Data Flow.
On the File menu, click Save Selected Items to save the package.