32
Click to edit Master subtitle style 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons Great Lakes

05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

Embed Size (px)

Citation preview

Page 1: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

Click to edit Master subtitle style05 | Configuration and

Deployment

Richard Currey | Senior Technical Trainer–New Horizons UnitedGeorge Squillace | Senior Technical Trainer–New Horizons Great Lakes

Page 2: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

• Troubleshooting

• Debugging

• Logging

• Event Handlers

• Deployment

Module 5 Overview

Page 3: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

Topic: Troubleshooting

Page 4: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

Topic: Troubleshooting

• Troubleshooting in SSIS

• Troubleshooting approaches

Page 5: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

Troubleshooting in SSIS

• The process of determining the source of problems that occur during package execution

• Tasks that can occur during the troubleshooting process–Monitoring execution path–Monitoring values, both data and variable–Monitoring events that occur–Monitoring the outcome of the package

Page 6: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

Troubleshooting Approaches

• Debugging– Setting breakpoints– Viewing execution progress– Viewing / modifying variable values– Viewing data flow

• Logging

• Event Handlers

Page 7: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

Topic: Debugging

Page 8: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

Topic: Debugging

• Breakpoints

• Watches

• Data Viewers

Page 9: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

Breakpoints

• Pauses execution when reached

• Enabled for any task or container in the package

• Can be configured to stop at:– Any time-will pause execution every time that the task is

encountered– Hit Count Equals-will pause after a specific number of

times that the breakpoint is reached– Hit Count Greater or Equal-will pause every time after the

threshold value is reached– Hit Count Multiple-will pause when the task is reached a

multiple of the value entered

Page 10: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

Watches

• Displays a variable and its associated value during execution

• Values can be modified while execution is paused

• Watch window displays requested variables

• Locals window displays all variables that are currently in scope

Page 11: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

Data Viewers

• Data can be copied from the viewer

• Used to watch records flow between data flow transforms

• Can be enabled between any two data flow components– Between a data source and a transform– Between any two transforms– Between transform and data destination

• Will pause the execution of the package while data is examined

Page 12: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

DEMODebugging a Package

Page 13: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

Topic: Logging

Page 14: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

Topic: Logging

• What Is Logging?

• Events

• Log Providers

• Configuring Logging

Page 15: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

What Is Logging?

• The process of persisting the details of package execution

• Can be used to determine where package execution failed in a production environment

• Can be used to help troubleshoot performance issues

Page 16: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

Events

• Events are the things that happen during package execution

• Events have properties that expose information that can be logged

• Events have some properties that are common to all events and some that are unique for that particular event

Page 17: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

• Are the destinations for the messages that are being logged

• Are data destinations so they require connection managers

• Types include text file, Windows Event Log, XML file, SQL Server, and SQL Server Profiler

Log Providers

Page 18: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

• Determine the executables to log

• Choose the Log Provider to use

• Determine the events that should be enabled

• Choose the information for each event

Configuring Logging

Page 19: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

DEMOConfiguring Logging

Page 20: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

Topic: Event Handlers

Page 21: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

Topic: Event Handlers

• What Are Event Handlers?

• Configuring Event Handling

Page 22: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

• Workflows that only occur when the event occurs

• Are tied to an event and an executable

• Error events are the most commonly defined event handlers

• Control flow is defined for each individual event handler

What Are Event Handlers?

Page 23: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

• Choose the executable and event that needs a response

• Design and implement a control flow to execute when the event occurs

Configuring Event Handling

Page 24: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

DEMOConfiguring Event Handling

Page 25: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

Topic: Deployment

Page 26: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

Topic: Deployment

• Deployment Types

• Package Configurations

• Environments

Page 27: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

Deployment Types

• Package deployment– The process of moving individual packages to a production

environment

• Project deployment –Moves all packages from a project into the production

environment– Includes all project-level resources

• Deployment can be to SQL Server, file system or SSIS catalog

Page 28: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

Package Configurations

• Are only available with package deployment

• Are used to set property values from outside of the package and to persist those values for reuse

• Can be direct or indirect– Direct configurations map an executable and property to a specific

value– Indirect configurations map an executable and a property to the

location where the property value can be found

• Include environment variables, registry entries, XML files, SQL Server, and the parent package variable

Page 29: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

DEMOImplementing Configurations

Page 30: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

Environments

• Provide similar functionality for packages as configurations– External mapping of property and value

• Multiple environments can be created– Dev– Test– Prod

• Property values can be specified in each environment– Connection string to a different SQL Server instance for

example

• Environment to use can be specified at runtime

Page 31: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

DEMOImplementing Environments

Page 32: 05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons

©2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.