Month: July 2022

T-SQL script showing SQL Server agent jobs that have never run

Background: Some individuals like to keep jobs in their SQL Server Agent for future code reference; these jobs have no schedule and will never run. For those I say, put them into your favorite code repository, not only for you but for others on your team too. For the SQL Server instances that I manage, …

T-SQL script showing SQL Server agent jobs that have never run Read More »

T-SQL script to show SQL Server agent jobs that are enabled but do not have notifications

Problem: SQL Server Agent jobs on your server are enabled, they are scheduled, and run as planned, but do not have notifications. For mission critical jobs, not having a job notify users can be costly. Why is this a problem? No DBA wants to have bad optics around themselves or their team. It is crucial …

T-SQL script to show SQL Server agent jobs that are enabled but do not have notifications Read More »