|
patelb
Starting Member
16 Posts |
Posted - 08/14/2008 : 13:45:50
|
Im using this command to insert a CSV file into a table: BULK INSERT sometable FROM 'c:\somefile.txt' WITH ( FIRSTROW = 2, FIELDTERMINATOR = ',', ROWTERMINATOR = '\n'
)
The CSV file is 70MB. I cannot get the file inserted into the table because I keep getting errors like:
Bulk load data conversion error (type mismatch or invalid character for the specified codepage)
I think it has to do with special characters such as '/','\','-' being in the data. Is there way to structure the bulk insert statement so it wont blow up if it hits a special character? |
|