Excel Source in SSIS

The EXCEL Source in SSIS (SQL Server Integration Services) is used to extract data from the Excel worksheet. The SSIS Excel Source uses Excel Connection Manager in SSIS to connect with the Excel files.

Configuring EXCEL Source in SSIS

Drag and drop the data flow task from the toolbox to the control flow. Next, change the name as Configuring EXCEL Source in SSIS.

EXCEL Source in SSIS 1

Double click on it will open the data flow tab. Now, Drag and drop Excel Source from SSIS toolbox into the data flow region

EXCEL Source in SSIS 2

Double click on Excel source in the data flow region will open the connection manager settings. If you haven’t created Excel Connection Manger before click on the New button and configure it.

EXCEL Source in SSIS 3

In this example, we are selecting the already created Excel Connection Manager. Please refer EXCEL Connection Manager in SSIS article to understand, How to configure the Excel Connection Manager

EXCEL Source in SSIS 4

Data Access Mode: This property provides four options for us:

  • Table Or View: If you select this option then, It will display the list of available Tables present in the Excel Worksheet. And our job is to select the required tables from them.
  • Table name Or View name variable: If you select this option then, We have to provide the variable name which holds the Table name or Views name.
  • SQL Command: If you select this option then, We have to write the SQL Command on our own.
  • SQL Command from variable: If you select this option then, We have to provide the variable name which holds the SQL Command.
EXCEL Source in SSIS 5

If you select the SQL Command option, then Editor will display the following options

  • SQL Command Text: If you are familiar with SQL Queries, then you can write it in the empty space provided by this option.
  • Build Query: If you click on this option, it will open a Query Designer to design the required query using the Graphical User interface. Please refer to Query Builder in SSIS article.
  • Browse: This will allow us to select the SQL Query present in the file system.
  • Parse Query: This option will check whether the query successfully parsed or not
EXCEL Source in SSIS 11

For the time being, we are selecting the Table or View option here. If you chose this option, the Name of the table or the View option display all the available Tables and Views present in the current connection manager.

EXCEL Source in SSIS 6

From the above screenshot, you can observe that we selected the PRODUCTS table from the Excel Worksheet. Click on the preview button to see the data present in the table

EXCEL Source in SSIS 7

Click on the columns tab to verify the columns. We can also remove the unwanted columns by unchecking them.

EXCEL Source in SSIS 8

Click ok to finish configuring EXCEL Source in SSIS.

EXCEL Source in SSIS 10

To show the data inside the Excel Source, we are just adding the Union All and then enabled the Data Viewer.

Excel Source in SSIS 12

Please execute the SSIS package to see the data inside the configured Excel Source

Excel Source in SSIS 13