As a follow on to yesterdays code snippet about finding the last modified date of SQL Server Agent Jobs, I thought I would apply the same code to find the last modified date of SQL Server Agent Job schedules. Always handy knowing when someone has disabled a schedule.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
USE msdb; GO DECLARE @SearchDate DATETIME; SET @SearchDate = '01 JAN 2015' SELECT name, [enabled], date_created, date_modified FROM sysschedules WHERE date_modified >= @SearchDate AND enabled = 0 ORDER BY date_modified DESC; GO |
Leave a Comment