I am trying to schedule a bcp job in server 2012 task scheduler. My batch file works fine when I double-click on it. It includes this line:
bcp "SELECT * FROM [TIME_KEEPER]" queryout D:\DATA\TIMESHEET_DBASE.csv -S 10.0.0.54 /c /t, -T
The file is created from the command line. Scheduler has:
- Action: start a program
- Script:
D:\DATA\myBatch.bat
- Start in:
D:\Data
I am using the same account for other scheduled tasks and they are running fine.