var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Job scheduling
I have two jobs scheduled on the Agent. Each job has ten steps. The next step is executed only if the previous suceeds.
I want Job 2 to execute only if Job 1 suceeds. How do I schedule that?
I was thinking that I can have the ten steps of Job 2 as steps (11 to 20) of Job 1 with each step executing after the previous one succeeds. If I do that then I can get rid of Job 2.
Let me know what approach you would advise.
I think that is the only option. I am not aware of any other way of controlling the job sequence.
You don't have to merge two jobs into one. At the end of job1, on step 10 choose "go to next step if succeeds" and then add one more step with command:
exec sp_start_job @job_name = job2