Hi all,
I have the following BCP statement that I cannot get to work:
bcp partman.dbo.export_part out c:\test.csv /U /P /sqlsvr1 /c /t
I am hoping to export the data from table export_part into CSV file test.csv.
However, I get the error:
Server: Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near '.'.
I have also tried:
bcp partman.dbo.export_part out "c:\test.csv" -c -t -S SQLSVR1 -T -e "C:\bcperror.txt"
But I get the same error.
Can anyone point me in the right direction... I've not used BCP before and am obviously going wrong somewhere!
Cheers
Start Free Trial