You created a job to run two SQL statements every day at 1:00pm. When you checked your job (Jobs view in Teratrax Database Manager) the next day, you noticed that it says “Failed” under “Last Run Status”.
Run the following SQL command (copy command and paste it in the SQL window in Teratrax Database Manager or Teratrax Source Guard) to determine the cause of failure. It returns the job history of the specified job (replace job name with the name of your job):
EXECUTE MSDB.DBO.SP_HELP_JOBHISTORY NULL,
'job name', @MODE = N'SEM'
Result:
| step_id | step_name | message | run_status | etc… |
|---|---|---|---|---|
| 0 | (Job outcome) | The job failed. The… | 0 | etc… |
| 1 | Step1 | Executed as user… | 0 | etc… |
The message cell contains the error messages that were recorded at the time the job ran. If the job was successful, the cell will still indicate the success status.
Beekeeper Studio Ist Eine Kostenlose & Open-Source-Datenbank-GUI
Das beste SQL-Abfrage- und Editor-Tool, das ich je benutzt habe. Es bietet alles, was ich zur Verwaltung meiner Datenbank brauche. - ⭐⭐⭐⭐⭐ Mit
Beekeeper Studio ist schnell, intuitiv und einfach zu bedienen. Beekeeper unterstützt viele Datenbanken und funktioniert hervorragend unter Windows, Mac und Linux.
Was Benutzer Über Beekeeper Studio Sagen
"Beekeeper Studio hat meinen alten SQL-Workflow komplett ersetzt. Es ist schnell, intuitiv und macht die Datenbankarbeit wieder angenehm."
"Ich habe viele Datenbank-GUIs ausprobiert, aber Beekeeper findet die perfekte Balance zwischen Funktionen und Einfachheit. Es funktioniert einfach."