ARTICLE

SQL Server Integration Services (SSIS) - Multi Cast Transformation in SSIS

Posted by Karthikeyan Anbarasan Articles | SQL Server April 25, 2011
In this article we are going to see how to use the Multicast transformation in SSIS packaging. This is part 53 of the series of articles on SSIS.
Reader Level:

Introduction:
In this article we are going to see how to use the Multicast transformation in SSIS packaging. Multicast transformation is used when a portion of the data needs to be transferred to some other flow which is something similar to Conditional task which does the same process.

The difference between the Multicast and the conditional split transformations is that for Multicast directs each row of the source to every output, whereas in the conditional split it directs a row to a single output. So using the multicast we can create data of separate logic and try to have it secured across the flow. This transformation can have a single input with multiple outputs across to pass the data. Let's jump start to see this sample of how to set the properties of the control.

You can look into my series of articles on SSIS at the url - http://f5debug.net/all-articles/

Steps:


Follow steps 1 to 3 on my first article to open the BIDS project and select the right project to work on an integration services project. Once the project is created, we will see how to use the Multicast Transformation task. Once you open the project just drag and drop the Multi Cast transformation control and a source provider is shown in the image below:

SSISMultiCast1.jpg

Now we need to configure the source data source as shown in the screen below:

SSISMultiCast2.jpg

Once the source is configured now drag and drop 3 destinations providers as shown in the screen below.
  1. OLEDB provider task to update the table
  2. Flat file provider to update a file
  3. Excel provider to update to an excel file

SSISMultiCast3.jpg

Now let's configure each destination as shown in the image below.

Here we created a new table where it will copy the complete dataset to the destination table using the multicast provider.

SSISMultiCast4.jpg

Now let's configure the flat file provider as shown in the screen below:

SSISMultiCast5.jpg

Now let us configure the excel destination provider as shown below:

SSISMultiCast6.jpg

Now all the destination providers are configured. Now go back to the Multicast provider and double-click to see the configuration as shown below:

SSISMultiCast7.jpg

Once everything is configured your screen should look like the screen below:

SSISMultiCast8.jpg

Now the package is ready to execute. Press F5 and you will see that the screen looks like below which indicates that the execution is completed.

SSISMultiCast9.jpg

To see the output in different destinations we can go ahead to the respective sections as shown below.

Output1: Table

SSISMultiCast10.jpg

Output 2: Flat file

SSISMultiCast11.jpg

Output 3: Excel destination file

SSISMultiCast12.jpg

Conclusion:

So in this article we have seen how to use the Multicast transformation task and the key configurations used in order to use this task easily.

COMMENT USING