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

Working with Data Flow components programmatically

In this recipe, we will see how to deal with Data Flow components, create source component, destination component, initialize them, assigning connection managers to components, and map input and output columns.

Getting ready

We need an empty copy of the HumanResources.Department table in the PacktPub_SSISbook database, so simply just run the following statement:

USE [PacktPub_SSISbook]
GO

CREATE SCHEMA [HumanResources]
GO


CREATE TABLE [HumanResources].[Department](
	[DepartmentID] [smallint] NOT NULL,
	[Name] [nvarchar](50) NOT NULL,
	[GroupName] [nvarchar](50) NOT NULL,
	[ModifiedDate] [datetime] NOT NULL
) ON [PRIMARY]

How to do it...

  1. Create a C# Console Application and name it as R02_Working with Data ...

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