Tag: Jobs

  • DBA Scripts: SQL Agent and Jobs

    Part of the DBA-Tools Project. A SQL Agent job that silently stopped running is one of the quietest failure modes in SQL Server, nothing errors, nothing alerts, the maintenance work it used to do just stops happening until someone notices the symptom weeks or months later: a fragmented index that never got rebuilt, an alert…

  • DBA Scripts: Get SQL Agent Job Failure Summary

    Part of the DBA-Tools Project. Get SQL Agent Job Overview answers “what’s the current state of every job.” This script answers a narrower, more urgent question: “what actually failed recently, and why.” Job history in msdb holds the error message for every failed step, but it’s not somewhere anyone looks unless they already suspect a…

  • DBA Scripts: Get Agent Alerts and Operators

    Part of the DBA-Tools Project. A SQL Server can raise a severity 19-25 error, the fatal, “something is genuinely broken” tier, corruption, out-of-resource conditions, hardware faults, and if there’s no alert configured for that severity, nothing happens. No email, no page, no ticket. The error sits in the error log where it will be found…