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

Importing from a csv file

Status
Not open for further replies.

cricketer1

Technical User
Mar 15, 2001
76
US
How can I import data from a csv file using DTS?
 
Still doesn't work...this is a:
Microsoft Excel Comma Separated Values File

It's not the regular csv text format. any suggestions?
 
Basically, it doesn't accept any row delimiter that I give it, giving an error "Row Delimiter Not Found". But I can open it in Notepad.

I have imported regular csv files into SQL server before this, but this one is strange. By default it opens in excel and not Notepad. If I save it as a comma delimited csv file within excel then SQL Server accepts it. But I can't do that manual, I want it to be automated DTS import.
 
I have tried all the row delimiters without any luck. The only thing I can think of now is to write a program to read this file and save it as a plain text file and then import this to SQL Server.

Thanks for your time and help. And if you come across a similar file and find a solution please post it here.

 
I import CSV files saved from Excel (as CSV) every day. There must be something else to this puzzle. If the data is not sensitive, could you post a couple of lines of it? Robert Bradley
teaser.jpg

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top