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

Bulk Insert

Status
Not open for further replies.

abeckwith

MIS
Feb 14, 2002
8
US
I am trying to use Bulk Insert to import a text file, but I keep getting an error that the data will be truncated. The file is comma delimited, character data is surrounded by double quotes and numeric data is not. When running the bulk insert, sql server is trying to import the double quotes as well as the data. How do I tell bulk insert that character data has double quotes around it?

Thanks
Angela

 
Are you doing this through DTS, if not you should be. There is a wizard it goes through and one of the options you tell it that test is delimited by : quote, double quote etc. Craig, mailto:sander@cogeco.ca

"Procrastination is the art of keeping up with yesterday."

I hope my post was helpful!!!
 
I have the import working through DTS. But I wanted to find out if it was possible using Bulk Insert or BCP????
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top