I have set up my SQL Server Agent to send notification emails whenever a job fails, but the messages in the emails are so not detailed, and it's not more than something like:
MESSAGES: The job failed. The Job was invoked by User domain\user. The last step to run was step 1 (jobName).
however if I open the history of that failing job, I can drill-down and see the details and the error message of the specific failing step inside that job.... the question is that, how can I get the error message of theSTEP (not just the job) appear in the notification email?