Hi,
I am completely new to the BCP utility and fairly new to SQL Server
I am learning from a book and I am trying the following example (the server
I'm learning on is called contractor and a password has not been give to the
sa)
bcp pubs..authors out authors.txt -C -r \n -t, -U sa -P -S contractor
When I run this in Query Analyser i get the error message..
Server: Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near '.'.
I have tried puuting quotes around the database and the table name as
follows-
bcp "pubs..authors" out authors.txt -C -r \n -t, -U sa -P -S contractor
and get the error
Server: Msg 179, Level 15, State 1, Line 1
Cannot use the OUTPUT option when passing a constant to a stored procedure.
Please can anybody help me to get this first bit working?
Thanks in anticipation.