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)
 XLS Import and TRIM

Author  Topic 

duhaas
Constraint Violating Yak Guru

310 Posts

Posted - 2006-08-29 : 22:29:26
Is there a way i can trim down a colum while doing an import from excel into sql server? Example, I have a colum that has identifier 1234, I really only want 12 inserted into the database. What I have been doing is trimming the column in excel first, and than doing my import, but thought maybe there would be a way to do it via the DTS package, or some other route. Any help would be greatly appreciated.

timmy
Master Smack Fu Yak Hacker

1242 Posts

Posted - 2006-08-30 : 01:00:48
I would import into a staging table first, then you can massage the data as much as you like before importing into your live table.

Go to Top of Page
   

- Advertisement -