Monday, February 17, 2014

T-SQL to Disable all Jobs in SQL Agent

USE MSDB;
GO
UPDATE MSDB.dbo.sysjobs
SET Enabled = 0
WHERE Enabled = 1;
GO

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.