O'Reilly logo

Microsoft SQL Server 2012 Integration Services: An Expert Cookbook by Pedro Perfeito, Reza Rad

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating and using Custom Tasks

SSIS has many Control Flow Tasks to help you in ETL development, but in real-world scenarios, you may need to write code to create something special. For example, suppose that you want to create a delay task which causes Control Flow to wait for some seconds. You can do it within a script task simply using .NET library, but what happens if you want to do the same thing in another package and probably in other projects? You can create your custom task and add it to SSIS toolbox simply, and then whenever you need it, you just need a drag-and-drop.

In this recipe, we will create a simple delay task and add it to SSIS toolbox.

How to do it...

  1. Open Visual Studio 2010 and create a C# Class Library project and name it as ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required