Link to home
Start Free TrialLog in
Avatar of 9772885
9772885

asked on

tsql scheduled job info

Im using stored procedure sp_help_jobhistory to identify failed jobs and email them to me. i would like to include the step that failed and the message from the job history but im not sure where this info is stored ?
Avatar of James Murrell
James Murrell
Flag of United Kingdom of Great Britain and Northern Ireland image

unsure. but i get the jobs to write everything to file: and attach the file with the email
ASKER CERTIFIED SOLUTION
Avatar of Sharath S
Sharath S
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Can you not just create an operator and notify on fail using the Advanced properties of the job step?
Avatar of 9772885
9772885

ASKER

ive had a look at the link which is very useful and although i can see i way of tracking individual steps on whether they are executing i cant see one for the overall job. I guess i could assmue that if any of the steps are executing then the job is but it would be nice of this was summerised somewhere else?