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)
 Import TextFile without DTS?

Author  Topic 

Peter.Bij@klm.com
Starting Member

12 Posts

Posted - 2004-02-12 : 05:57:32
Since DTS-packages (SQL server 7.0) are UNfriendly when you want to change something in the packages, I had like to read data from a textfile without the use of a DTS-package.

Does anyone have an usefull example for me?.
Kind regards

Peter

ditch
Master Smack Fu Yak Hacker

1466 Posts

Posted - 2004-02-12 : 06:22:18
You can Look up Bulk Insert in Books Online
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2004-02-12 : 07:33:46
Also look at bcp, since it allows both import and export. Once you learn bcp and BULK INSERT, you'll hardly ever use DTS again.
Go to Top of Page

Peter.Bij@klm.com
Starting Member

12 Posts

Posted - 2004-02-12 : 09:07:29
quote:
Originally posted by robvolk

Also look at bcp, since it allows both import and export. Once you learn bcp and BULK INSERT, you'll hardly ever use DTS again.



I have developed a StoredProcedure based on the Books Online and I agree:
Never DTS again

Thanks for the info.
Go to Top of Page

nr
SQLTeam MVY

12543 Posts

Posted - 2004-02-12 : 09:13:00
see
http://www.nigelrivett.net/ImportTextFiles.html

==========================================
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 -