An Excel connection manager enables a package to connect to an existing Microsoft Excel workbook file. The Excel source and the Excel destination that Microsoft SQL Server Integration Services includes use the Excel connection manager.
When you add an Excel connection manager to a package, Integration Services creates a connection manager that is resolved as an Excel connection at run time, sets the connection manager properties, and adds the connection manager to the Connections collection on the package.
The ConnectionManagerType property of the connection manager is set to EXCEL.
Configuration of the Excel Connection Manager
You can configure the Excel connection manager in the following ways:
Specify the path of the Excel workbook file.
You cannot connect to a password-protected Excel file.
Specify the version of Excel that was used to create the file.
Indicate whether the first row of accessed data in the selected worksheets or ranges contains column names.
If the Excel connection manager is used by an Excel source, the column names are included with the extracted data. If it is used by an Excel destination, the column names are included in the written data.
You can set properties through SSIS Designer or programmatically.
For more information about the properties that you can set in SSIS Designer, see Excel Connection Manager Editor.
For information about looping through a group of Excel files, see Loop through Excel Files and Tables by Using a Foreach Loop Container.