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 É Uma GUI de Banco de Dados Gratuita e de Código Aberto
A melhor ferramenta de consultas SQL e editor que já usei. Fornece tudo que preciso para gerenciar meu banco de dados. - ⭐⭐⭐⭐⭐ Mit
Beekeeper Studio é rápido, intuitivo e fácil de usar. Beekeeper suporta muitos bancos de dados e funciona muito bem no Windows, Mac e Linux.
O Que Os Usuários Dizem Sobre o Beekeeper Studio
"O Beekeeper Studio substituiu completamente meu antigo fluxo de trabalho com SQL. É rápido, intuitivo e torna o trabalho com banco de dados agradável novamente."
"Já experimentei muitas GUIs de banco de dados, mas o Beekeeper encontra o equilíbrio perfeito entre recursos e simplicidade. Simplesmente funciona."