Jaa


Excel Source Editor (Connection Manager Page)

Use the Connection Manager node of the Excel Source Editor dialog box to select the Microsoft Excel workbook for the source to use. The Excel source reads data from a worksheet or named range in an existing workbook.

Note

To load data from a data source that uses Microsoft Office Excel 2007, use an OLE DB source. You cannot use an Excel source to connect to an Excel 2007 data source. For more information, see Excel Connection Manager Editor.

Note

The CommandTimeout property of the Excel source is not available in the Excel Source Editor, but can be set by using the Advanced Editor. For more information on this property, see the Excel Source section of Source Custom Properties.

To learn more about the Excel source, see Excel Source.

Static Options

  • OLE DB connection manager
    Select an existing Excel connection manager from the list, or create a new connection by clicking New.
  • New
    Create a new connection manager by using the Excel Connection Manager dialog box.
  • Data access mode
    Specify the method for selecting data from the source.

    Value Description

    Table or view

    Retrieve data from a worksheet or named range in the Excel file.

    Table name or view name variable

    Specify the worksheet or range name in a variable.

    Related information:Using Variables in Packages

    SQL command

    Retrieve data from the Excel file by using a SQL query. For information about query syntax, see Excel Source.

    SQL command from variable

    Specify the SQL query text in a variable.

  • Preview
    Preview results by using the Data View dialog box. Preview can display up to 200 rows.

Data Access Mode Dynamic Options

Data access mode = Table or view

  • Name of the Excel sheet
    Select the name of the worksheet or named range from a list of those available in the Excel workbook.

Data access mode = Table name or view name variable

  • Variable name
    Select the variable that contains the name of the worksheet or named range.

Data access mode = SQL command

  • SQL command text
    Enter the text of a SQL query, build the query by clicking Build Query, or browse to the file that contains the query text by clicking Browse.
  • Parameters
    If you have entered a parameterized query by using ? as a parameter placeholder in the query text, use the Set Query Parameters dialog box to map query input parameters to package variables.
  • Build query
    Use the Query Builder dialog box to construct the SQL query visually.
  • Browse
    Use the Open dialog box to locate the file that contains the text of the SQL query.
  • Parse query
    Verify the syntax of the query text.

Data access mode = SQL command from variable

  • Variable name
    Select the variable that contains the text of the SQL query.

See Also

Reference

Excel Source Editor (Columns Page)
Excel Source Editor (Error Output Page)

Other Resources

Integration Services Error and Message Reference
Excel Connection Manager
How to: Loop through Excel Files and Tables

Help and Information

Getting SQL Server 2005 Assistance

Change History

Release History

12 December 2006

New content:
  • Added a note about the use of Excel 2007 data sources.

5 December 2005

New content:
  • Added a note about use of the Advanced Editor.