This commit is contained in:
2025-07-07 09:09:23 +02:00
parent 9055f93195
commit 809b1aa75d
96 changed files with 1120 additions and 1120 deletions

View File

@@ -1,6 +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;"
{
"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;"
}