Multiple Schedules for a single SQL Server Agent Job

  • Hello Everybody

    I have a sql server agent job which is scheduled on a monthly basis. If the job fails, then I want to automate another job in a week time. I know that we can configure the job with retry attempts but I want it to run after 7 days, so I do not want the job to retry for 7 days.

    Like we have option for steps, when a step is failed then we can control it to continue with the next step or to fail. In the similar fashion do we have any such option for schedules where we can rerun the job when the first scheduled job fails?

    Thanks

    Sunny

  • I have not seen the feature / option you are asking out of the box, only a custom script might be the solution.


    Bru Medishetty

    Blog -- LearnSQLWithBru

    Join on Facebook Page Facebook.comLearnSQLWithBru

    Twitter -- BruMedishetty

  • Hi Bru

    Thanks for your response.

    Can you direct me with an example of the script or any link that is useful

    Thanks

    Sunny

  • Hi

    I would have the last step of your monthly job update a table somewhere with a success/failure flag. You can then schedule your other job to run a week later. The first step of this job will check the table and only run if there's been a failure.

    cheers

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply