SQL Server Agent Job Timeout

后端 未结 2 399
半阙折子戏
半阙折子戏 2020-12-15 22:51

I have just had a scheduled SQL Server job run for longer than normal, and I could really have done with having set a timeout to stop it after a certain length of time.

2条回答
  •  轮回少年
    2020-12-15 23:06

    What kind of a job is this? You may want to consider putting the whole job in a TSQL script within a While loop. The condition to check would obviously be the time difference between current time and job start time.

    Raj

提交回复
热议问题