Let’s Get Certified
Module 11 / 16 · Configure and manage automation of tasks

Operate SQL Server Agent jobs

Plan schedules, notifications and step-level retries with a clear execution identity.

Operate SQL Server Agent jobs

Work through the decision

An import completes its first two job steps, then fails writing a summary. An operator proposes restarting everything. Which job details determine whether that is safe?

Check your reasoning

Inspect the failing step, previous step outputs, transaction boundaries, execution identity, subsystem and history. Determine whether the job is idempotent and whether earlier rows committed. Fix the cause and resume from a safe boundary. Configure notification on the overall outcome as well as useful diagnostic logging.

Watch the source lesson at 2:25:41

Compare the choices

Job schedule
Define frequency, start windows and eligible execution times. Check overlaps and time interpretation.
Operator notification
Route job outcomes or configured alerts to a responsible recipient. Test the underlying delivery channel.
Job-step history
Locate the failing step and error, its SQL context and whether previous steps completed.
Execution identity
Inspect owner, service account or proxy as applicable to the subsystem. Verify least privileges in the intended environment.

Test the decision

On SQL Server and supported Managed Instance configurations, use SQL Server Agent for local schedules. Azure SQL Database has different scheduling options. Confirm maintenance windows, time zones, job overlap and the delivery of failure notifications.

Practice the guide skills

  1. Schedule a nightly maintenance job on a managed instance or SQL VM. Watch 2:25:41
    Check your answer

    Identify database, job steps, owner, schedule and time basis. Ensure the job fits the window without overlapping another run.

  2. A job fails without reaching the on-call engineer. Watch 2:27:05 · Continue at 2:27:26
    Check your answer

    Configure the operator, notification channel and failure condition. Exercise a controlled failed test step and confirm delivery as well as job history.

  3. One job step succeeds interactively and fails overnight. Watch 2:28:00
    Check your answer

    Inspect that step’s history, execution identity, subsystem or proxy, database context and permissions. Verify partial output before retrying.

Official objectives for this lesson

Related lesson · Choose a signal and route an alert

Knowledge check

Operate SQL Server Agent jobs quiz

Answer 3 questions. Check each answer for an explanation.