Reputation: 1098
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!
Upvotes: 0
Views: 3939
Reputation: 432401
A disabled job does not run.
You can not update system tables directly in SQL Server 2005+...
Upvotes: 2
Reputation: 13702
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.
Upvotes: 2
Reputation: 47472
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.
Upvotes: 4