开发者

Disbabled sql server job will still try to run at the original scheduled time

开发者 https://www.devze.com 2022-12-13 22:06 出处:网络
I have a sql server job, which has been 开发者_运维技巧disabled. But the job continues to attempt to run at the original scheduled time.

I have a sql server job, which has been 开发者_运维技巧disabled. But the job continues to attempt to run at the original scheduled time. I wonder why it keeps doing this.

Thanks!


If the job was disabled by setting the system table directly then it may display in SQL Agent as being disabled, but will actually still run. To disable a job make sure that you either use the SSMS UI or the system stored procedure sp_update_job.


Have you done this by updating the sysjobs table manually? If you update the table sysjobs directlu, then you may neglected to update the sysschedules tables to disable the scheduler which will then start the job as per schedule.

If you are disabling it by in t-sql use the sp_update_job procedure in the msdb database.


A disabled job does not run.

  • Does it have multiple schedules?
  • Have you disabled the schedule?
  • Do you have an alert?
  • Is it being triggered elsewhere?

You can not update system tables directly in SQL Server 2005+...

0

精彩评论

暂无评论...
验证码 换一张
取 消