BCP error
"-t," specify the filed terminator as a comma"-r\r\n" specify the row terminator as ENTER (carriage return and line feed)Are those the filed and row delimiter of the file?
View ArticleBCP error
Thank you both, I tried the following but it only loaded one record. Where should I specify column and row delimter?EXEC master.dbo.xp_cmdshell'bcp Test2.dbo.TestTableImport in C:\TestTable.csv -c -T...
View ArticleBCP error
It looks like there's a space between C:\TestTable and .csv, hence bcp consider .csv a parameter which is unknown.
View ArticleBCP error
Why is that the following code doesn't work ..(error is Unknown argument '.csv' on command line.)exec master.dbo.xp_cmdshell 'bcp Test2.dbo.TestTableImport in C:\TestTable .csv -c -T -t 'But the...
View ArticleBCP error
Why is that the following code doesn't work ..(error is Unknown argument '.csv' on command line.)exec master.dbo.xp_cmdshell 'bcp Test2.dbo.TestTableImport in C:\TestTable .csv -c -T -t 'But the...
View Article