Skip to content

SQL Server job monitoring

A failed overnight job is easy to miss until someone needs its results. Here’s how to keep on top of scheduled work, and how this applies beyond SQL Server.

The problem

Scheduled jobs fail quietly, or slowly take longer until they run into the next one. Without a shared view, you find out when a report is wrong or a load is late.

Recognise the symptoms

  • Failed jobs noticed the next morning
  • Jobs taking longer each month with nobody tracking it
  • Schedules that overlap as data grows
  • Job history checked one server at a time

A practical approach

  1. List what runs and when

    Know which jobs matter, what depends on them and when each one should finish.

  2. Track outcomes

    Review failures, and which step failed, instead of relying on each job to raise its own alarm.

  3. Watch runtimes

    Compare fastest, average and slowest runs. A slow job is often an early warning of a failed one.

  4. Check for overlaps

    Look at what runs at the same time, particularly around backups and heavy loads.

SQL Server job monitoring by technology

SQL Server

Available: SQL Agent job status, schedules, run history and failures, with job and step runtimes.

The msdb job history tables.

PostgreSQL

Not available yet: No job monitoring yet.

The pg_cron extension’s job and run history tables, if you use it.

MySQL

Not available yet: No job monitoring yet. Event definitions aren’t part of object search either.

The Event Scheduler and information_schema.EVENTS.

MariaDB

Not available yet: No job monitoring yet. Event definitions aren’t part of object search either.

The Event Scheduler and information_schema.EVENTS.

Oracle

Not available yet: No job monitoring yet.

DBMS_SCHEDULER and its job run views.

SQLite

Doesn’t apply: SQLite has no built-in scheduler, so there’s nothing for SQL Cockpit to read.

Your operating system’s scheduler or your application.

What success looks like

You know what ran, what failed and what’s slowing down, before anyone asks.

SQL Cockpit’s job monitoring reads SQL Server Agent history. It doesn’t cover schedulers on other engines yet, or jobs run outside the database.