SSIS Excel import
In SQL Server 2000 DTS there is an Extended Connection properties window that you can set the IMEX property for importing Excel spreadsheets into a SQL Server table. Does anyone know where this is in SQL Server 2005 SSIS? Thanks,
July 20th, 2006 8:29pm

Under the Data Flow Sources, you will find Excel Source. You can double click this and customize the settings to import an excel spreadsheet into memory. From there onwards, you can drop in a SQL Server Destination task from the Data Flow Destinations section and map your columns to the destination table that can also be set.
Free Windows Admin Tool Kit Click here and download it now
July 20th, 2006 8:32pm

Yes, I knew that. The problem is when the data changes type in a column the import converts them into null values. The property IMEX fixes this problem. In SQL Server 2000 DTS there was an extended properties section where you could set this property. I can not find this section in SSIS. Here is a link that describes the problem: http://dotnetjunkies.com/WebLog/amar/archive/2005/03/11/59990.aspx
July 20th, 2006 9:04pm

The way to add the option is as follows: Add an Excel Connection Manager to the package. Selecting a sample file. Create a parameter at the package level called ConnectionString and assign it the value:Provider=Microsoft.Jet.OLEDB.4.0;Data Source=<FileName>;Extended Properties="EXCEL 8.0;HDR=NO;IMEX=1";Replace <FileName> with the fully qualified (ie path and filename) ofthe sample Excel file from 1. In the properties for the Connection Manager open the Property Expressions Editor Select "ConnectionString" in the Property columns dropdown list Add @[User::ConnectionString] to the Expression Column Click Ok This will then override the default Excel connection string everytime it runs. You can override the data source component of the string by setting the Excel File Pathof the connection manager. Hope this helps.
Free Windows Admin Tool Kit Click here and download it now
August 11th, 2006 2:04pm

Here are some examples and problem descriptions with mixed datatypes and IMEX: http://microsoft-ssis.blogspot.com/2011/06/mixed-data-types-in-excel-column.htmlPlease mark the post as answered if it answers your question | My SSIS Blog: http://microsoft-ssis.blogspot.com
June 26th, 2011 7:04am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics