dbTalk Databases Forums  

BULK INSERT CODEPAGE

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss BULK INSERT CODEPAGE in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Will the Thrill
 
Posts: n/a

Default BULK INSERT CODEPAGE - 04-02-2010 , 11:31 AM






In trying to BULK INSERT data with the following statement:

BULK INSERT Ideas
FROM 'C:\ideas.csv'
WITH
(
FIELDTERMINATOR =',',
ROWTERMINATOR ='\r',
MAXERRORS = 1000,
BATCHSIZE = 1
)

from an irregularly formatted csv file I get the following error:

Msg 4864, Level 16, State 1, Procedure ap_IDEAS_BULKINSERT, Line 10
Bulk load data conversion error (type mismatch or invalid character for the
specified codepage) for row 110, column 34 (NOTES).

Not all lines cause errors. It appears those with double quotes within the
text cause problems.
and line on which the error occurs is:

0005,COMPANYA (0005),0005-00000001,Vendor B,Vendor B,Steve
Smith,800-555-1545,10/6/2003,Assorted stuff,Lower cost,Joe Smith,Joe
Smith,10/6/2003,PUR,0,13001.8,0.7,18500,Each,0,0,0,0,0,0,R,N/A,Rejected,9/29/2005,,13005.5,10/6/2003,External,Vendor
B will provide identical lower cost stuff. Additional benefit of developing
Vendor B ordering/inventory program so as to "work around" limitation C.

Thanks,

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.