TimBiesiek
Programmer
Hi all,
Am running a BCP command from within a stored procedure. However, it ends up having the process blocked, and locks up certain tables in the DB until the process is killed.
I have tried removing the BCP command and running it from the Query Analyzer, but it says there is a syntax error near 'Queryout'.
Below is the command I am using:
The tmpViewTMSExport is a temporary view I have created, just before running the BCP command...
Any ideas?
Am running a BCP command from within a stored procedure. However, it ends up having the process blocked, and locks up certain tables in the DB until the process is killed.
I have tried removing the BCP command and running it from the Query Analyzer, but it says there is a syntax error near 'Queryout'.
Below is the command I am using:
Code:
bcp "SELECT * FROM mitrecoredata..tmpViewTMSExport" queryout "\\msc\mscdata\rhd\Imports\DRQ20050929 TEST ONLY.TXT" -U sa -P testserver -c
The tmpViewTMSExport is a temporary view I have created, just before running the BCP command...
Any ideas?