Sdílet prostřednictvím


Excel Connection Manager

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 include 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.

You can configure the Excel connection manager in the following ways:

  • Specify the path of the Excel workbook 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.

The Excel connection manager uses the Microsoft OLE DB Provider for Jet 4.0 and its supporting Excel ISAM (Indexed Sequential Access Method) driver to connect and read and write data to Excel data sources. For more information about the behavior of this provider and driver when used with Excel sources and Excel destinations, see Excel Source and Excel Destination.

Note

You cannot connect to a password-protected Excel file.

Configuring the Excel Connection Manager

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 configuring a connection manager programmatically, see ConnectionManager and Adding Connections Programmatically.

For information about looping through a group of Excel files, see How to: Loop through Excel Files and Tables by Using a Foreach Loop Container.

Integration Services icon (small) Stay Up to Date with Integration Services

For the latest downloads, articles, samples, and videos from Microsoft, as well as selected solutions from the community, visit the Integration Services page on MSDN or TechNet:

For automatic notification of these updates, subscribe to the RSS feeds available on the page.

Change History

Updated content

  • Removed note about how a data source that uses Microsoft Office Excel 2007 requires a different connection manager than earlier versions of Excel. For updated how-to information, see How to: Connect to an Excel Workbook.