October 4, 2004 at 5:21 am
I have to bulk insert the data from csv file into orders table. I am trying to use following code but fail to import/insert.
from 'c:\orders.csv'
WITH
( FIRSTROW = 2, DATAFILETYPE = 'native', FIELDTERMINATOR = '\c', ROWTERMINATOR = '\n',CODEPAGE = 'RAW' )
Thx in advance.
October 4, 2004 at 5:26 am
You have to specify the characters denoting each field and rows.
What are they in your file? These are the ones you should use. Also, is the file native and not plain ASCII?
/Kenneth
October 4, 2004 at 11:10 pm
The datafile type would certainly not be "Native" if you are trying to input CSV.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 5, 2004 at 2:10 pm
Hi
Can you post the first line you are using to import via bcp.
Some problems are related on separator and/or delimitator row.
Hildevan O Bezerra
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply