View
227
Download
1
Category
Preview:
Citation preview
8.8. Debugging SSIS Debugging SSIS PackagesPackages
.
Presented by: Pramod Singla
Pramod_singla@yahoo.co.in
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 ViewerRow Count Transformation
Summary
pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
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 taskLog 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)
Debugging Debugging 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)
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)
Introducing Breakpoints Introducing 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)
Working with Breakpoints Working 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)
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)
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)
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.
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 ViewerRow Count Transformation
pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
DEMO8_Debugging.dtsx
pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
Resources & QuestionsResources & Questions
Contact me : ◦ Pramod_singla@yahoo.co.in◦ http://pramodsingla.wordpress.com/
Microsoft Resources:◦ http://msdn.microsoft.com/en-us/library/cc304421.aspx
pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
Recommended