Microsoft Dynamics CRM 2011

Microsoft Dynamics CRM 2011

Tuesday, June 9, 2015

How to watch SSIS Variables values at debugging in Sql Server Integration Services

In this article we see Step by step How to watch SSIS Variables values at debugging in Sql Server Integration Services .
We'll review here in only 5 minutes how to check SSIS variables at runtime, telling apart those at Foreach Loops from those at Data Flows  . We'll be using the following SSIS application:

How to watch SSIS Variables values at debugging in Sql Server Integration Services


How to watch SSIS Variables values at debugging in Sql Server Integration Services


In the picture below you can see the guiding principles of watching variables at runtime  in a  "Data Flow Task" :

watch SSIS Variables values at debugging in Sql Server Integration Services


To start, select the SSIS item in which you want to watch the variables values.
Since variables have  scopes,   you should make sure that the current scope comprehend the chosen item.
We'll start by setting a breakpoint in a Data Flow Task .
Now that you decided which flow item to watch,  click the "Edit Breakpoints" menu  :


Now choose the Break condition where to stop the debug . Mostly it can be the OnPreExecute event, or any one of the several Events that you can see on the following picture:


SSIS Variables values at debugging in Sql Server Integration Services

However, in case of a Foreach Loop Container, it stands to reason that you will want to watch the variables at the start of every loop iteration . So select from the checklist the "Break at the beginning..."  option:


values at debugging in Sql Server Integration Services

It can also be set in which cases to stop the runtime: it can be set to stop when the breakpoint has been reached certain times:


Variables values at debugging in Sql Server Integration Services

Once you finished setting the breakpoints, start the debug and, while the breakpoint has been reached, open the "Locals" window. There you will find all the current variables in scope:



debugging in Sql Server Integration Services

How to watch SSIS Variables values at debugging


That's all.  

Happy programming.....

      by Carmel Schvartzman


כתב: כרמל שוורצמן