14
8. 8. Debugging SSIS Debugging SSIS Packages Packages . Presented by: Pramod Singla [email protected]

8\9 SSIS 2008R2_Training - Debugging_Package

Embed Size (px)

Citation preview

Page 1: 8\9 SSIS 2008R2_Training - Debugging_Package

8.8. Debugging SSIS Debugging SSIS PackagesPackages

.

Presented by: Pramod Singla

[email protected]

Page 2: 8\9 SSIS 2008R2_Training - Debugging_Package

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

[email protected] (www.pramodsingla.wordpress.com)

Page 3: 8\9 SSIS 2008R2_Training - Debugging_Package

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

[email protected] (www.pramodsingla.wordpress.com)

Page 4: 8\9 SSIS 2008R2_Training - Debugging_Package

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

[email protected] (www.pramodsingla.wordpress.com)

Page 5: 8\9 SSIS 2008R2_Training - Debugging_Package

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

[email protected] (www.pramodsingla.wordpress.com)[email protected] (www.pramodsingla.wordpress.com)

Page 6: 8\9 SSIS 2008R2_Training - Debugging_Package

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.

[email protected] (www.pramodsingla.wordpress.com)

Page 7: 8\9 SSIS 2008R2_Training - Debugging_Package

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.

[email protected] (www.pramodsingla.wordpress.com)

Page 8: 8\9 SSIS 2008R2_Training - Debugging_Package

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.

[email protected] (www.pramodsingla.wordpress.com)

Page 9: 8\9 SSIS 2008R2_Training - Debugging_Package

Data ViewerData Viewer

To see what kind of data is passing between 2 Data Flow Tasks.

[email protected] (www.pramodsingla.wordpress.com)

Page 10: 8\9 SSIS 2008R2_Training - Debugging_Package

Row Count Transformation

[email protected] (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. 

Page 11: 8\9 SSIS 2008R2_Training - Debugging_Package

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

[email protected] (www.pramodsingla.wordpress.com)

Page 12: 8\9 SSIS 2008R2_Training - Debugging_Package

DEMO8_Debugging.dtsx

Page 13: 8\9 SSIS 2008R2_Training - Debugging_Package

[email protected] (www.pramodsingla.wordpress.com)

Page 14: 8\9 SSIS 2008R2_Training - Debugging_Package

Resources & QuestionsResources & Questions

Contact me : ◦ [email protected]◦ http://pramodsingla.wordpress.com/

Microsoft Resources:◦ http://msdn.microsoft.com/en-us/library/cc304421.aspx

[email protected] (www.pramodsingla.wordpress.com)