_jesse


I'm scheduling a T-SQL job with SQL Agent. The job uses PRINT to write out various progress and status messages as it runs. I created an Operator, and set a Notification when the job fails -- will that send me the entire output of the job, or just the error message




Re: Reporting errors & output from SQL Agent

Sue Hoegemeier


You will just get notification that the job failed.

If you want the details, I think what you are looking for is to use an output file for the job and then attach and send that file with the job failure. For the output file, click on the job step (or steps) and and go to the advanced windows where you can designate and output file.

-Sue