SQL server 2005 Integration services provide the ability to handle any type of event associated with the execution of its task and container (through the ability to configure corresponding handlers)
The following list contains more significant and commonly monitored types of events (you might be able to spot some of them in the Output window during package execution in Debug node)
Generated as the result of on error condition. It falls into the category of the most frequently implemented types of event handler. Its purpose can be for additional information simplifying troubleshooting, or to notify about a problem and need for remediation.
Similar to the On error event, it is raised in response to a problem (although not as significant in terms of severity).
Produces reporting information relating to the outcome of either validation or execution of a task or container (other than warning or error)
Signals the failure of a task and typically follows on error event.
Indicates that an exec table component is about to be launched.
Marks the beginning of the component validation stage, following the on pre execute event. The main purpose of validation is detection of potential problems that might prevent execution from completing successfully.
Inclined to build a profession as MSBI Developer? Then here is the blog post on, explore MSBI Training
Occurs as soon as the validation process of the component is completed ( following on prevail date event),
Takes place after an executable component finishes running
Allows you to detect changes to variables. The scope of the variable determines which executable will raise the event. In addition, in order for the event to take place, the variable’s change event property must be set to true (the default is faces)
Raised at the point where measurable progress is made by the executable (for example, when running execute SQL Task).
Scenario: Clean up or truncate the destination table before executing or loading data into destination.
Open Business Intelligence Development studio ------------->
Create a new package and Rename it as Event Handler.dtsx ------------->
In control flow drag and drop the data flow task and Rename it as DFT Event Handler ------------->
In data flow drag and drop OLEDB source ------------->
Double click on OLEDB source to edit it ------------->
Provide connection manager if exists ------------->
Select [human resource] . [Employee] table from the dropdown list ------------->
Select columns from left panel ------------->
Click OK ------------->
Drag and drop OLEDB destination and make a connection from OLEDB source to destination ------------->
Double click on OLEDB destination ------------->
Provide destination connection manager ------------->
Click new to create a destination table and Rename OLEDB destination as employee details ------------->
Click ok Twice ------------->
Go to event handler tab ------------->
Drag and Drop Execute SQL Task [on pre-validate Event handler for package executable] ------------->
Double click on Execute SQL task provide connection if exists ------------->
Provide the following SQL command. To clean up the data from destination table ------------->
Truncate Table Employee details ------------->
Click ok ------------->
Execute package
You liked the article?
Like: 0
Vote for difficulty
Current difficulty (Avg): Medium
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.