Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Script

Author  Topic 

jhunu
Starting Member

18 Posts

Posted - 2012-01-30 : 13:05:12
What is the SQL script to disable a job

X002548
Not Just a Number

15586 Posts

Posted - 2012-01-30 : 13:10:13
USE [msdb]
GO
EXEC msdb.dbo.sp_update_job @job_id=N'guid',
@enabled=0
GO

Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx


Want to help yourself?

http://msdn.microsoft.com/en-us/library/ms130214.aspx

http://weblogs.sqlteam.com/brettk/

http://brettkaiser.blogspot.com/


Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-01-30 : 13:32:51
if you want to do it from wizard
connect to sql server from management studio. expand server->sql server agent expand jobs and find the required job. right click on it and select disable it will disable the job

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -