In this post, we will learn How to read excel file in SSIS – Load into SQL Server. We will use SSIS PowerPack to connect Excel file. This article also covers how to read Excel file in SSIS.
SSIS Excel File Source Connector (Advanced Excel Source) can be used to read Excel files without installing any Microsoft Office Driver. You can extract using Table mode or query mode (SQL Command).
In nutshell, this post will focus on how to Read Excel file and load data into SQL Server Table.
- First, you will need to have SSIS installed
- Secondly, make sure to have SSDT
- Make sure that Microsoft Excel installed
- Finally, do not forget to install ZappySys SSIS PowerPack
Components Mentioned in this article
What is Excel File Source Connector
SSIS Excel File Source Connector (Advanced Excel Source) can be used to read the Excel file without installing any Microsoft Office Driver. You can extract using Table mode or query mode (SQL Command). Support for flexible metadata detection mode so you can get accurate datatypes
In order to start, we will show several examples of how to connect the excel file and read data from the excel worksheet. ZappySys includes an SSIS Excel File Source Connector that will help you in reading excel sheet data from Excel File. Here we are showing you is, How to Load Excel File data in SQL Server using SSIS Pack.
Getting Started – Read Excel File in SSIS
Let´s start with an example. Let’s use our SSIS Excel File Source Connector, we will read data from Microsoft Excel File.
- First of All, Drag and drop Data Flow Task from SSIS Toolbox and double click it to edit.
- Now add Excel Source from the SSIS Toolbox.
- Double Click on Excel Source for edit and select New Connection and click on New button.
- Now select the excel file path in and test connection in opened excel connection manager window and click on OK.
- Let’s read the Excel Workbook data using table mode and select sheet to read data from that excel sheet.
- We can also read Excel Workbook using SQL Query mode and filter the data.
- You can do various other things also in the query mode, find our various example here to read Excel Workbook using SQL Query mode.
- That’s it we are ready to load excel file data to SQL Server.
Load Excel File data into SQL Server
- Inside Data Flow, Drag OLEDB Destination from SSIS Toolbox
- Connect our Source component to OLEDB Destination
- Double click OLEDB Destination to configure it
- Select Target Connection or click NEW to create new connection
- Select Target Table or click NEW to create new table based on source columns
- Click on Mappings Tab to Auto map columns by name. You can change mappings as you need
- Click OK to Save OLEDB Destination Settings
- That's it, You are now ready to run data flow. NOTE: If you wish to debug data flow and see records when you run, add data viewer by right click on blue arrow > Click Enable Data Viewer
- To execute data flow, Right click anywhere inside Data Flow Surface and click Execute Task
Above all, in this blog, we learned how to read excel file worksheet Data in Excel File using SSIS Pack. We used Excel File Source Connector to read the Excel file and load data into SQL Server. You can download SSIS PowerPack here to try many other scenarios not discussed in this blog along with 70+ other components.
Finally, you can use the following links for more information: