Wednesday, January 7, 2015

Session 4 : Break Points in SSIS
AnandWednesday, January 7, 2015 0 comments

Session 4 : Break Points in SSIS


Once the project is created, we will see on how to use breakpoint options available with SSIS.
I have created a project here which will copy the data from SQL db to Excel sheet from the Northwind database. I have created a Dataflow task along with OLEDB Source and Excel destination tasks to make the flow perfect. Now in order to activate the Break points just right click on the DataFlow task and select  “Edit Breakpoints” as shown in the below screen.
clip_image001
It will open a window which has the list of events available for the SSIS process execution. We need to select our exact needed break point to check the process at that particular point. There are about 10 events available and are as follows
  • · OnPreExecute: Triggered when task is about to Execute
  • · OnPostExecute: Triggered when task is executed
  • · OnError: Triggered when error occurred with the Task
  • · OnWarning: Triggered when task just throws a warning
  • · OnInformation: Triggered when task is about to provide some information’s
  • · OnTaskFailed: Triggered by task host when it fails to execute.
  • · OnProgress: Triggered to update progress about task execution.
  • · OnQueryCancel: Triggered in task processing when you can cancel execution.
  • · OnVariableValueChanged: Triggered when the variable value is changed
  • · OnCustomEvent: Triggered by tasks to raise custom task-defined events.
clip_image002
Here I have selected OnPostExecute event, so in my project once the task is execute this break point wil be triggered and we can check the execution process at that point.
Let’s now see on how the breakpoint execution works, if you notice after selecting the break point a red dot will appear in the task as break point notification as shown in the below screen
clip_image003
Now go ahead and press F5 to run the application. It will process the task and shows the execution after the tasks completed as shown in the below screen
clip_image004
In the above image if you see it points to the RED dot with an arrow symbol which indicates that the execution is waiting at this breakpoint to get completed. If you see the below pane in the IDE there are some windows which tells the execution process of this task.
The LOCALS windows at the bottom tells you exactly on the execution status if its success or failure, and the duration of the execution process and the execution status. Similar wise on the right hand side we can see the Breakpoints window which shows the complete list of breakpoints available not specific to the task but to the whole application.
OUTPUT window shows the execution process on the steps done and shows what is available at the current section. If we go to the data flow tab it shows the execution in green color which confirms that the execution is completed and then the process breakpoint triggered.
clip_image005

Conclusion

So in this section we have seen on the break point essentials in SSIS Packaging and the execution plan status available in order to check the process flow.

In Category :
About The Author Anand Anand is a Microsoft Certified MCITP (Business Intelligence Infrastructure Using Microsoft SQL Server 2008), MCTS (SQL Server 2008, Business Intelligence Development and Maintenance) with 8 + years of experience in the Finance , Education, Healthcare, Banking and Insurance, Telecom domain focused on delivering software design, development, and data migrations from diversified data sources using Business Intelligence analysis tools..

0 comments

Post a Comment