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.

9\9 SSIS 2008R2_Training - Package Reliability and Package Execution

377 views

Published on

This PPT explains SSIS packages reliability(ACID compliant) and execution options available that exists in SQL Server 2008 R2.

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

  • Be the first to like this

9\9 SSIS 2008R2_Training - Package Reliability and Package Execution

  1. 1. . Presented by: Pramod Singla Pramod_singla@yahoo.co.in
  2. 2.  Package Reliability  Package Logging ◦ Configuring Logging ◦ Configuring Logging in a Scipt Task and Viewing Logs  Event Handling ◦ Demo: Adding a Task to an Event Handler  Transactions ◦ Demo: Configuring Transaction Support  Checkpoints ◦ Demo: Working with Checkpoints ◦ Demo: Using Checkpoints with Containers  Package Execution  Package Execution Utilities ◦ Demo: Using DTExec in the command line ◦ Demo: Using DTExecUI  SQL Server Agent Jobs ◦ Demo: Creating a SQL Server Agent Job  Summary pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
  3. 3.  Debugging  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)
  4. 4.  At run time, executables (packages and Foreach Loop, For Loop, Sequence, and task host containers) raise events  Event handlers can perform tasks such as the following: ◦ Clean up temporary data storage when a package or task finishes running. ◦ Custom Logging  ◦ Send an e-mail message when an error or a warning occurs or when a task fails. pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
  5. 5.  Transaction support is built in to SSIS.   The TransactionOption property exists at the package level, container level (e.g. For Loop, Foreach Loop, Sequence, etc.), as well as just about any Control Flow task (e.g. Execute SQL task, Data Flow task, etc.).   TransactionOption can be set to one of the following: ◦ Required - if a transaction exists join it else start a new one ◦ Supported - if a transaction exists join it (this is the default) ◦ NotSupported - do not join an existing transaction  MSDTC Service must be running. pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com) pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
  6. 6.  Integration Services can restart failed packages from the point of failure, instead of rerunning the whole package.  Configuring Checkpoints ◦ To implement checkpoints in your package, you must configure several properties at the package level: ◦ CheckpointFileName: Specifies the full path and filename of your checkpoint file. ◦ CheckpointUsage - Determines if/how checkpoints are used.  Choose from these options:  Never (default), IfExists, or Always.  Never indicates that you are not using Checkpoints.  IfExists is the typical setting and implements the restart at the point of failure behavior.  If a Checkpoint file is found it is used to restore package variable values and restart at the point of failure.  If a Checkpoint file is not found the package starts execution with the first task.   The Always choice raises an error if the Checkpoint file does not exist ◦ SaveCheckpoints: Specifies whether the package saves checkpoints. Set to True to enable checkpoints on the package. ◦ by default, no tasks are setup to log checkpoints. For each task and container in the package that you want to identify as a restart point, you must set the FailPackageOnFailure property True.   pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
  7. 7.  To run an Integration Services package, you can use one of the following tools: ◦ The dtexec command prompt utility (dtexec.exe). ◦ The Execute Package Utility (dtexecui.exe). ◦ A SQL Server Agent job. ◦ Run in Business Intelligence Development Studio pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
  8. 8.  The dtexec command prompt utility is used to configure and execute SQL Server Integration Services packages  dtexec /dts "MSDBOnlineDemoPrecedence_Constraints“  dtexec/FILE "C:UserspramDesktopSSIStrainingtempPrecedence_Constraints.dtsx" /CHECKPOINTING OFF /REPORTING EW pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
  9. 9.  GUI to execute SSIS package  To launch Type “dtexecui” in RUN  Double click on package will automatically open it  In package store right click a package and run pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
  10. 10.  You can automate and schedule the execution of SQL Server Integration Services packages by using SQL Server Agent pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
  11. 11.  Package Reliability  Package Logging ◦ Configuring Logging ◦ Configuring Logging in a Scipt Task and Viewing Logs  Event Handling ◦ Demo: Adding a Task to an Event Handler  Transactions ◦ Demo: Configuring Transaction Support  Checkpoints ◦ Demo: Working with Checkpoints ◦ Demo: Using Checkpoints with Containers  Package Execution  Package Execution Utilities ◦ Demo: Using DTExec in the command line ◦ Demo: Using DTExecUI  SQL Server Agent Jobs ◦ Demo: Creating a SQL Server Agent Job pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
  12. 12. pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)
  13. 13.  Contact me : ◦ Pramod_singla@yahoo.co.in ◦ http://pramodsingla.wordpress.com/  Microsoft Resources: ◦ http://consultingblogs.emc.com/jamiethomson/archive/2005/06/11/SSIS_3A00_-Custom- Logging-Using-Event-Handlers.aspx ◦ http://www.mssqltips.com/sqlservertip/1585/how-to-use-transactions-in-sql-server- integration-services-ssis/ pramod_singla@yahoo.co.in (www.pramodsingla.wordpress.com)

×