Link to home
Start Free TrialLog in
Avatar of GPSPOW
GPSPOWFlag for United States of America

asked on

BCP command from batch file runs cithout stopping

The following is a BCP command in a Batch file I want to use to copy a SQL table to a CSV file:

bcp "livendb.dbo.zzz_VTE6" out "C:\users\FSAdmin\Documents\VTE6.csv" -c -t, -T -SHPC-DR1

When I run the batch file, it does not stop.

Can anyone see something wrong with the syntax?

I have something similar for a query which runs without a problem.

Thanks

Glen
ASKER CERTIFIED SOLUTION
Avatar of DcpKing
DcpKing
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GPSPOW

ASKER

Thanks

I would love to use SSIS, but SQL Server does not have SSIS.

I got it to work with your suggestions.

glen