I'm trying to automate a SSIS package using dtexec
via Task Scheduler (as I do not have rights to create it via SQL Agent) and need it done locally on my machine. I referenced this post: How to launch cmd.exe to execute command using Task Scheduler ?, but I can't get the syntax right for dtexec.
My Program Script is:
"C:\Program Files\Microsoft SQL Server\120\DTS\Binn\dtexec.exe"
with Add Argument of:
/f “C:\Users\f9a\Desktop/HRFact.dtsx”
But when it runs, it pops up the cmd
window for a split second, then goes away. The History shows a return code of 4.
I can run this in cmd.exe
by typing this:
dtexec/f “C:\Users\f9a\Desktop/HRFact.dtsx”
and it works fine. I just can't seem to get the syntax for Task Scheduler. Can you help? Thanks in advance!
-Trey