Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 importing excel2007 by using dts package

Author  Topic 

vishalpandit
Starting Member

2 Posts

Posted - 2012-05-16 : 09:50:21
Hi I am importing .xlsx and .xls file to database by using dts package. The NULL values get inserted into database. I am using ODBC driver and file dsn for connection to excel
Thanks in advance.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-05-16 : 20:04:58
Did you try setting IMEX = 1. It might be that excel was unable to determine correct datatype for it

see second point here


http://msdn.microsoft.com/en-us/library/ms141683.aspx

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

vishalpandit
Starting Member

2 Posts

Posted - 2012-05-17 : 09:13:58
The extended properties I got from connection contains dsn file contents.I appended IMEX=1 to that content also I changed setting of typeguessrow for excel 12.0 in registry to 00000000.Its not working at all
Go to Top of Page
   

- Advertisement -