Multicast Transformation in SSIS

Multicast Transformation in SSIS sends input data to multiple destination paths without applying any conditions or transformations. OR, Takes ONE Input and makes the logical COPY of data and passes the same data to multiple outputs.

SSIS Multicast Transformation is very useful when we want to apply different transformations on the same dataset in parallel. For instance, If we’re going to perform two types of transformations on the same dataset. Then use SSIS Multicast Transformation to make two copies of the same data. Next, on each copy, we can perform different transformations.

Multicast Transformation in SSIS Example

In this example, we use SSIS Multicast transformation to send the OLE DB source data (from Dimcustomers and Fact internet sales tables) to multiple destinations, such as Excel file and Text file using both Excel destination and Flat File destination.

STEP 1: Drag and drop the data flow task from the toolbox to control flow and rename it as Multicast Transformation.

Multicast Transformation in SSIS 1

Double click on the SSIS data flow task will open the data flow tab.

STEP 2: Drag and drop OLE DB Source, Multicast Transformation in SSIS toolbox to data flow region

Multicast Transformation in SSIS 2

STEP 3: Double click on OLEDB source in the data flow region will open the connection manager settings and provides space to write our SQL statement.

Multicast Transformation in SSIS 3

SQL Command Text

The SQL Command that we used in the above screenshot is:

SELECT Color, 
       EnglishProductName, 
       ListPrice, 
       DealerPrice,
       EnglishDescription, 
       Fact.SalesAmount
FROM DimProduct
   INNER JOIN
     FactInternetSales AS Fact 
   ON DimProduct.ProductKey = Fact.ProductKey

For this SSIS Multicast Transformation example, we are selecting a color, English Product Name, List Price, Dealer Price, English Description from DimProduct table and Sales amount column from Fact Internet Sales table presented in [Adventure Works DW 2014]

STEP 4: Click on the OLE DB Source columns tab to verify the columns. In this tab, we can uncheck the unwanted columns also.

Multicast Transformation in SSIS 4

STEP 5: Click the OK button. Next, Drag the arrow downwards and attach it to Multicast. There is nothing to do with SSIS Multicast Transformation because it will just transfer the data to multiple outputs. Please, drag and drop the Excel Destination into the data flow region.

Multicast Transformation in SSIS 5

STEP 6: Now, we have to provide Excel Connection Manager and table details of the destination. So double click on the Excel Destination and provide the required information

Multicast Transformation in SSIS 6

Here we selected the DimProducts.xls as our excel destination sheet

TIP: You have to create the Excel sheet before using it in the Excel Connection Manager. If you checkmark the First row has column names option then, Column names will save in the first row of the selected Excel sheet.

Multicast Transformation in SSIS 7

Here we selected the Product_Destination table so, to check the result you have to open the Product_Destination sheet inside the DimProducts.xls

STEP 7: After configuring the table, click on the Mappings tab to check whether the source columns exactly mapped to the destination columns.

Multicast Transformation in SSIS 8

Click ok to finish configuring the excel destination.

STEP 8: Drag and drop the Flat File Destination, and connect to SSIS Multicast Transformation. Now we have to provide Flat File Connection Manager and file name of the destination. So double click on the Flat File Destination and provide the required information

Multicast Transformation in SSIS 9

STEP 9: Click on the Mappings tab to check whether they precisely mapped to the destination columns.

Multicast Transformation in SSIS 10

Click ok to finish the SSIS Multicast package set up and Run the package

Multicast Transformation in SSIS 11

Check the result of SSIS Multicast Transformation in Excel sheet

Multicast Transformation in SSIS 12

Check the SSIS Multicast Transformation result in a Text file

Multicast Transformation in SSIS 13