Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing data from txt files

Status
Not open for further replies.

TomBarrand

Programmer
Aug 9, 2000
162
GB
I would like to import data from txt files. There will be several txt files in a specified location. I have looked at using BCP is this correct? and is it possible to import data from more than one txt file?

Thanks,

Tom
 

You can use BCP, Bulk Insert or DTS (Data Transformation Services) to import from text files. The documentation in SQL BOL explains clearly how to use each method.

You can create a batch file to run multiple BCP's to import multiple files. You can create a T-SQL script or stored procedure to execute multiple Bulk Inserts. And you can create Multiple DTS packages or one DTS package with multiple steps. Terry L. Broadbent
faq183-874 contains some tips and ideas for posting questions in these forums. Please review it and comment if you have time.
NOTE: Reference to the FAQ is part of my signature and is not directed at any individual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top