Learn your way! Get started

SSIS 2014, Part 08 of 11: Handling Errors and Events

with expert Don Kiely


Watch trailer


Course at a glance

Included in these subscriptions:

  • Dev & IT Pro Video
  • Dev & IT Pro Power Pack

Release date 6/1/2015
Level Intermediate
Runtime 2h 5m
Closed captioning Included
Transcript Included
eBooks / courseware Included
Hands-on labs Included
Sample code Included
Exams Included


Enterprise Solutions

Need reporting, custom learning tracks, or SCORM? Learn More



Course description

Integration Services has a variety of tools and provides various techniques you can use to see what a task or package is doing and how it is doing it, as you’ll see in this course. You can cause the behavior or a task to change when problems arise, whether from bad data or missing resources, and you can partition a Control Flow so that a whole separate set of tasks execute only when certain kinds of events occur. You can pause package execution at pre-defined breakpoints—conceptually similar to breakpoints in programming tools but quite different in practice. You cause the package to store information in a checkpoint file about where it failed so that the next time you run the package it doesn’t repeat any tasks that completed successfully. And you can log many kinds of information about the package as each task executes. In this course, you’ll learn about these debugging, error handling, and logging features that can help you diagnose most kinds of problems in your package.

Prerequisites

This course assumes that you have a basic familiarity with the concept of relational databases and a basic understanding of what SQL Server is and the high-level tools in it, as well as how to create and manage objects using Management Studio. You should also have a basic understanding of how SQL Server implements security, including its authentication and authorization schemes, and how to assign permissions on securable objects to principals. You should know the fundamentals of Transact-SQL to write queries to retrieve data and join data from multiple tables, and how to execute scripts using the query editor in Management Studio. You must also know how to connect to an instance of SQL Server 2012 or 2014 using the various connection dialog boxes in Management Studio and development tools. It will be very helpful, but not absolutely necessary, to have experience with .NET development using Visual Studio 2013 or later for the portions of the course that deal with SQL Server Data Tools (which is a lot of it). At the very least, we’ll assume that you are well familiar with the Visual Studio user interface. This course assumes no prior knowledge of SQL Server Integration Services beyond what is covered in the previous SSIS courses.

Learning Paths

This course will help you prepare for the following certifications and exams:
MCSE: Business Intelligence
MCSA: SQL Server 2012/2014
MCSE: Data Platform
70-467: Designing Business Intelligence Solutions with Microsoft SQL Server
70-463: Implementing a Data Warehouse with Microsoft SQL Server 2012/2014

This course is part of the following LearnNowOnline SuccessPaths™:
SQL Server Integration Services

Meet the expert

Don Kiely is a featured instructor on many of our SQL Server and Visual Studio courses. He is a nationally recognized author, instructor, and consultant specializing in Microsoft technologies. Don has many years of teaching experience, is the author or co-author of several programming books, and has spoken at many industry conferences and user groups. In addition, Don is a consultant for a variety of companies that develop distributed applications for public and private organizations.

Course outline



Handling Errors

Execution With Checkpoints (29:40)
  • Introduction (01:11)
  • When Things Go Wrong (01:09)
  • Restarting Package Execution (02:10)
  • Implementing Checkpoints (03:22)
  • How it Works (01:14)
  • Demo: Using Checkpoints (05:06)
  • Demo: Creating a Problem (04:47)
  • Demo: Execution Scenario (04:40)
  • Demo: The Checkpoint File (02:00)
  • Demo: Restart Package Execution (03:21)
  • Summary (00:36)
Error Handling and Debugging (16:07)
  • Introduction (01:13)
  • Precedence Constraints (02:17)
  • Demo: Introducing Random Errors (03:38)
  • Demo: Adding a Failure Path (02:46)
  • Demo: Two Failure Paths (02:55)
  • Demo: The Constraint Editor (02:50)
  • Summary (00:26)
Error Outputs In Data Flows (20:23)
  • Introduction (01:42)
  • Error Actions (01:24)
  • Demo: Data Conversion Pkg (04:37)
  • Demo: Data Conversion Errors (02:37)
  • Demo: Configure Error Output (04:31)
  • Demo: Redirect Bad Data (04:48)
  • Summary (00:40)

Handling Events

Breakpoints (08:43)
  • Introduction (00:43)
  • Demo: For Loop Container (04:07)
  • Demo: Setting Breakpoints (03:20)
  • Summary (00:32)
Logging Events (10:31)
  • Introduction (00:59)
  • Demo: The Data Base & Pkg (04:31)
  • Demo: Log Events (04:32)
  • Summary (00:27)
Configuring Package Logging (09:56)
  • Introduction (01:12)
  • Configuring Package Logging (01:57)
  • Logging to a Text File (00:26)
  • Demo: Configure Logging (04:38)
  • Demo: Execute Pkg (00:41)
  • Summary (01:00)
Configure for Windows Event Log (04:31)
  • Introduction (00:30)
  • Demo: Windows Event Log (03:06)
  • Custom Logging (00:33)
  • Summary (00:22)
Event Handling (25:13)
  • Introduction (01:05)
  • Event Handling (02:09)
  • Handling Errors (00:46)
  • Demo: Event Handling Project (04:40)
  • Demo: For Loop Container (06:11)
  • Demo: Execute the Package (02:12)
  • Demo: Create an Event Handler (03:13)
  • Demo: Execute & Note Results (04:26)
  • Summary (00:27)