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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

importing a comma delimmited file into sql server

Status
Not open for further replies.

pink2070

Programmer
Jan 29, 2004
23
US
This is new to me, How do I import a comma delimmited file into sql server.

If you have any code snippets or site recommendatins they would be greatly appreciated :)

Thank you very much

Pink
 
me i do it on the sql-server via a dts package because if you do it locally and the user has other settings for , or . it doesnt work anymore.

just my 2 cents worth

Christiaan Baes
Belgium

What a wonderfull world - Louis armstrong
 
Check out the BULK INSERT Command.
Look up the Help on this within SQL Server itself.

Code:
BULK INSERT Northwind.dbo.[Order Details]
   FROM 'f:\orders\lineitem.tbl'
   WITH 
      (
         FIELDTERMINATOR = '|',
         ROWTERMINATOR = '|\n'
      )



Sweep
...if it works dont mess with it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top