Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

8\9 SSIS 2008R2_Training - Debugging_Package

319 views

Published on

This PPT explains SSIS debugging options that exists in SQL Server 2008 R2.

Published in: Data & Analytics
  • Be the first to comment

  • Be the first to like this

8\9 SSIS 2008R2_Training - Debugging_Package

  1. 1. 8.8. Debugging SSISDebugging SSIS PackagesPackages . Presented by: Pramod Singla Pramod_singla@yahoo.co.in
  2. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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)
  12. 12. DEMO 8_Debugging.dtsx
  13. 13. pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
  14. 14. 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)

×