Add SQLAgent folder
This commit is contained in:
12
SQLAgent/02_Test/3_Job_Maintenance/DeactivateMonthlyJob.sql
Normal file
12
SQLAgent/02_Test/3_Job_Maintenance/DeactivateMonthlyJob.sql
Normal file
@ -0,0 +1,12 @@
|
||||
USE TestDUTASJobSchedule;
|
||||
GO
|
||||
|
||||
UPDATE dbo.JobControl
|
||||
SET IsActive = 0
|
||||
WHERE Frequency = 'MONTHLY';
|
||||
GO
|
||||
|
||||
-- Optional: Verify changes
|
||||
SELECT JobName, Frequency, IsActive
|
||||
FROM dbo.JobControl
|
||||
WHERE Frequency = 'MONTHLY';
|
||||
Reference in New Issue
Block a user