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)
 dts .xls file

Author  Topic 

fmardani
Constraint Violating Yak Guru

433 Posts

Posted - 2005-07-01 : 10:43:10
I am exporting data from .xls file into a table in sql server 2000 using DTS. The first column is set to text in excel but the dts doe snot recognise it. It thinks it is integer and that is why it only exports the numbers and not the fileds with text in them??
Thanks

Thrasymachus
Constraint Violating Yak Guru

483 Posts

Posted - 2005-07-01 : 10:49:55
do not use the wizard. use the designer. create your table first and explicitly map the columns on the import.

Sean Roussy

Please backup all of your databases including master, msdb and model on a regular basis. I am tired of telling people they are screwed. The job you save may be your own.

I am available for consulting work. Just email me though the forum.
Go to Top of Page

fmardani
Constraint Violating Yak Guru

433 Posts

Posted - 2005-07-01 : 10:53:22
yes, this is indeed what I am doing. But during the mapping it only picks up the number values and not the string values ??
Thanks
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-07-01 : 11:00:03
Have you tried OpenRowSet instead of DTS?
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49926

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

fmardani
Constraint Violating Yak Guru

433 Posts

Posted - 2005-07-01 : 11:07:30
Thanks, BUT have to get the DTS job to work.
Go to Top of Page
   

- Advertisement -