Hello
I am using SQL 2000
Does anybody know what is wrong with the following command
I am simply typing this in exactly as you see it and executing it within Query analyser
I have tried numerous variances on the select statment, i.e. reduced statement, single quotes, default database is mdw therefore remove this part, and the problem doesn't seem to lie there
Also the same with the file to copy to (proddup.csv)
It returns the following every time:
Line 10: Incorrect syntax near query out
Thanks
Damian
I am using SQL 2000
Does anybody know what is wrong with the following command
I am simply typing this in exactly as you see it and executing it within Query analyser
Code:
bcp "select * from mdw..product_duplications order by productid" queryout "c:\proddup.csv" -c -T -t',' -r\n\r
I have tried numerous variances on the select statment, i.e. reduced statement, single quotes, default database is mdw therefore remove this part, and the problem doesn't seem to lie there
Also the same with the file to copy to (proddup.csv)
It returns the following every time:
Line 10: Incorrect syntax near query out
Thanks
Damian