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)
 Extraction from text files

Author  Topic 

pravin14u
Posting Yak Master

246 Posts

Posted - 2004-06-26 : 02:38:03
How to extract data from multiple text files and load it into a single database?(Sql Server)

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2004-06-26 : 03:23:54
Create an ActiveX script task to loop through the files using FSO, firing off dataPump Tasks for each file. Post back if you need code sample.
Go to Top of Page

nr
SQLTeam MVY

12543 Posts

Posted - 2004-06-26 : 06:16:10
see
http://www.nigelrivett.net/ImportTextFiles.html

bcp is usually preferable for text file.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -