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 dropping leading zeros

Author  Topic 

csphard
Posting Yak Master

113 Posts

Posted - 2006-10-31 : 11:16:33
I am trying to upload some information to a table using dts.
dts is uploading the information but dropping leading zeros.

my information is a text file and its in the following format
employee_number email_address
000121,my@aol.com

It will load
121 my@aol.com

should my information be in this formate
"000121","my@aol.com"

what do I do to stop it from dropping those leading zeros

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-10-31 : 13:50:01
It should be ok. Just make sure DTS imports the column as varchar, not integer.
If not successful, add " as you suggested.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page
   

- Advertisement -