sync
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"id": "67e4d51f-49ee-4e47-9cac-0bd7496371f3",
|
||||
"prefix": "disable_all_jobs",
|
||||
"description": "generate sql to disable all jobs on the local server",
|
||||
"body": "SELECT 'Exec MSDB.dbo.sp_update_job @job_name = N''' + SJ.name + ''', @Enabled = 0'\r\n FROM msdb..sysjobs SJ\r\n INNER JOIN msdb..syscategories SC\r\n ON SJ.category_id = SC.category_id\r\n WHERE [SJ].[enabled] = 1;"
|
||||
}
|
||||
Reference in New Issue
Block a user