Share via

Suspend SQL Job

Urbel 605 Reputation points
2025-03-22T09:49:08.66+00:00

Hi Expert,

is there function to suspend Running SQL job?

in case SQL job1 at 2 AM still running then next other SQL Job2 will run at 2.30 AM but SQL job1 must be suspended until SQL Job2 task completed...then SQL Job1 continue run from the checkpoint it's suspended...

how do I implement this scenario?

very great appreciation & thanks for all advice

warm regards,

Urbel

SQL Server Database Engine
0 comments No comments

1 answer

Sort by: Most helpful
  1. Erland Sommarskog 134.7K Reputation points MVP Volunteer Moderator
    2025-03-22T11:00:12.83+00:00

    You would have to implement that on your own by adding checks in the code. But if the first job is the middle of a long-running operation that takes 20 minutes, it will keep running. Unless you have some monitoring job that brutally kills it.

    So in short, this is nowhere close to trivial, and you probably need to rethink the overall approach here.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.