Databases · Microsoft SQL Server
SQL Server Agent Jobs
Cheat sheet · https://pcornel.dk/topic.php?topic=6183
Answer
SQL Server Agent schedules and runs jobs (backups, maintenance, ETL) with steps, schedules, alerts and operators.
Remember
Agent service must run (not available in Express). Check job history for step errors and the proxy/credential used. Configure notifications for failures.
First checks
SELECT status_desc FROM sys.dm_server_services;— first check for this topicpsql -c "SELECT now(), version();"— PostgreSQL reachable and versionmysql -e "SELECT NOW(), VERSION();"— MariaDB/MySQL reachable and versionsqlcmd -S <server> -Q "SELECT @@VERSION"— SQL Server reachable and version
Verify in this order
schedule → job → steps run as owner/proxy → history
Where it usually breaks
Agent service set to manual start stops all jobs after a reboot.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6183