Is it possible, that I can receive Email from Server Agent, if a step in an Agent has an error, but the Job is successful? In the history, I can see, that for example one Step has an Error, but all others were successful.
Sql-server – SQL Server Agent Notification Email if a Step has an error, but the job is succesfull
sql serversql-server-agent
Related Question
- SQL Server Agent – Job Step Fails Due to Missing Database Snapshot
- SQL Server Job History – Why ‘Include Step Output in History’ is Not Checked
- Sql-server – SQL Agent Job – Error Creating Step
- Sql-server – SQL Server Agent job returns a failure status message after the job succeed.
- Sql-server – SQL Agent Job step using Powershell can not find Network Share
- SQL Server Agent – How to Capture Error Message from One Step in Another Step
- SQL Server Agent – Reporting Failure but Continuing When Intermediate Step Fails
Best Answer
Yes you can achieve this with help of SP:
You can refer here how it is being used.
Adding@ You can recieve email if Database mail is configured in very first place. On how to set that up read How to Set Up Database Mail for SQL Server Job Failures
Also, In SQL Agent Job Properties-> step > edit> Advanced --you can also check Include step output in history to get the message from step failure.
Leave the On failure action to Quit the job reporting failure.