Diyas
SSCarpal Tunnel
Points: 4851
More actions
June 25, 2018 at 10:17 am
#352259
Hi,
i have task assigned that is how to call sql agent job through task sheduler.can i write bat file something like that can you please suggest.
Sue_H
SSC Guru
Points: 90860
June 25, 2018 at 11:22 am
#1995189
Diyas - Monday, June 25, 2018 10:17 AMHi,i have task assigned that is how to call sql agent job through task sheduler.can i write bat file something like that can you please suggest.
You can write a bat file that executes sqlcmd to call the stored procedure sp_start_job.
Sue
Chris Harshman
SSC-Forever
Points: 42192
June 25, 2018 at 12:17 pm
#1995197
This may be a silly question, but is there a reason you can't schedule the SQL Agent job in SQL Agent?
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply