August 11, 2008 at 2:55 pm
I am using SSIS Import and Export Wizard for loading the data from Excel into a SQL 2005 database table. The source excel column has values like A, A101,B100,C,12,11,100,2000.
The values: A, A101,B100,C are getting loaded into the SQL table, but the numbers
12,11,100,2000 are getting loaded as nulls into the SQL table. The datatype for that column in the table is varchar(255). Please advice. Thanks!!
August 11, 2008 at 3:20 pm
August 11, 2008 at 3:32 pm
SrikanthSv (8/11/2008)
Use IMEX =1 in the connection property string of the excel connectionthat'll set the mode to import and all the values will be populated.
Please let me know where I can set this property? Thanks for your speedy response.
August 11, 2008 at 3:44 pm
August 11, 2008 at 3:55 pm
SrikanthSv (8/11/2008)
When u select the connection and check for the properties you can find a connection stringso add this tag in the connection string value
it'll be like
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=data.xls;Extended Properties=Excel 8.0;HDR=YES;IMEX=1
Great!! It worked, you are the best!!!!
January 14, 2010 at 8:06 am
I'm having the same problem and still can't get it to work
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply