2. ContentContent
Debugging
Debug Windows
Breakpoints
◦ Demo: Introducing Breakpoints
◦ Demo: Working with Breakpoints
Script Task Debugging
◦ Demo: Debugging a Script Task
Data Viewer
◦ Demo: Using the Grid Viewer
◦ Demo: Using the Histogram Viewer
◦ Demo: Using the Scatterplot Viewer
◦ Demo: Using the Chart Viewer
Row Count Transformation
Summary
pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
3. Recap and Q&ARecap and Q&A
Scripting in Integration Services
◦ Demo: Get the list of names from the SSIS package store
Script Task Configuration
◦ Demo: Configuring a Script Task
◦ Demo: Sending Email using Script task
Log method
◦ Demo: Working with the Log method
Events
◦ Demo: Working with the Events Member
Script Components
◦ Demo: Creating a Data Transformation Script Component
pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
4. DebuggingDebugging
SSIS's various capabilities for
debugging packages during
development and for dealing with
errors during production execution
Debug packages ways:
◦ Using progress reporting.
◦ View intermediate results by using
debug windows . Ctrl+Alt+O
◦ Examine the package state by setting
breakpoints.
◦ Redirecting the error constraint
◦ Using Data viewer
◦ Using row count transformation
pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
5. Debug WindowsDebug Windows
Use the object model( especially the properties and methods of
the Application class) to perform the following management tasks:
◦ To get a list of packages stored in a particular location
◦ To determine whether an individual package or folder exists, or to manage the
folders in which packages are stored
◦ To get a list of running packages and to stop a running package
◦ To get a list of roles that is available on a server or assigned to a package
pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
6. Introducing BreakpointsIntroducing Breakpoints
Breakpoints are powerful tools
for resolving errors and
validating functionality.
Breakpoints function in the
control flow but not in the data
flow, which will pause the
control flow execution.
Open the Locals window to see
variable values and the package
status.
pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
7. Working with BreakpointsWorking with Breakpoints
To set a breakpoint, highlight the task
or container:
press F9.
Right-click, and then click Edit
Breakpoints.
In popup window, select the various
events where you want the
breakpoint to be set.
Add locals to view the variable
values at these breakpoints.
pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
8. Script Task DebuggingScript Task Debugging
Open the script task you
want to set the breakpoint
in VSTA.
Go to the line where you
wish to setup the break
point.
Right click on that line and
select point to Breakpoint,
and then click Insert
Breakpoint.
pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
9. Data ViewerData Viewer
To see what kind of
data is passing
between 2 Data Flow
Tasks.
pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
10. Row Count Transformation
pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
It counts rows as they pass through a data flow and
stores the final count in a variable.
It stores value in the variable only after the last row has
passed.
Can use row counts to update the variables used in
scripts, expressions, and property expressions.
It has one input and one output. It does not support an
error output.
11. SummarySummary
Debugging
Debug Windows
Breakpoints
◦ Demo: Introducing Breakpoints
◦ Demo: Working with Breakpoints
Script Task Debugging
◦ Demo: Debugging a Script Task
Data Viewer
◦ Demo: Using the Grid Viewer
◦ Demo: Using the Histogram Viewer
◦ Demo: Using the Scatterplot Viewer
◦ Demo: Using the Chart Viewer
Row Count Transformation
pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)