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
 SQL Server Development (2000)
 importing file rows to colums

Author  Topic 

pelegk2
Aged Yak Warrior

723 Posts

Posted - 2006-06-06 : 06:48:05
i have a file with a sring not delimited
but for each col i know the positins in the string for each row
how can i import a file in the same way its done on
"all tasks->import data, and then choosing from files and choosing the delimiter position"
thnaks in advance
peleg

Israel -the best place to live in aftr heaven 9but no one wan't to go there so fast -:)

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-06-06 : 07:04:29
1. declare a temporary table
2. buld insert into temporary table
3. loop numbers of columns and use substring for each column
Go to Top of Page
   

- Advertisement -