hi,
I am trying to load a table in SQL 2008 by using a data present in .csv file by using BCP command. I am unable to do this, as it is throwing following error.
But as an workaround, i opened the same file in excel and saved as .csv again from my end. After doing this, i am able to load the data to my table.
I dont understand, why the hell it should throw an error message, when i am trying to load the data initially. Why is not, second time. The file which i am trying to load for the first time, is the Output of SAS program, which is run with Linux OS.
Can you please help me to identify this problem? what am i doing wrong here?
Thanks in advance for your help.
I am trying to load a table in SQL 2008 by using a data present in .csv file by using BCP command. I am unable to do this, as it is throwing following error.
Code:
Msg 4866, Level 16, State 1, Line 1
The bulk load failed. The column is too long in the data file for row 1, column 15. Verify that the field terminator and row terminator are specified correctly.
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "BULK" for linked server "(null)" reported an error. The provider did not give any information about the error.
Msg 7330, Level 16, State 2, Line 1
Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".
But as an workaround, i opened the same file in excel and saved as .csv again from my end. After doing this, i am able to load the data to my table.
I dont understand, why the hell it should throw an error message, when i am trying to load the data initially. Why is not, second time. The file which i am trying to load for the first time, is the Output of SAS program, which is run with Linux OS.
Can you please help me to identify this problem? what am i doing wrong here?
Thanks in advance for your help.