Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I have set email notification on the completition of a scheduled job.

Is it possible to customize the email content?

share|improve this question
add comment

2 Answers

up vote 5 down vote accepted

The way I've done this in the past is added a final step to the job, then I can use Database Mail to customize everything about the message (subject, body, recipients, from, etc) based on the server, the status/outcome of the job, and even the duration.

It is cumbersome if you have a lot of jobs, but I did this for a variety of other reasons as well (for example, other actions to perform in addition to sending an e-mail).

You may also consider a management tool like SQL Sentry Event Manager which provides lots of flexibility over how to handle successful/failed jobs, and has comprehensive options for subsequent actions.

Disclaimer: I work for SQL Sentry.

share|improve this answer
add comment

Using the native tools, no. You'd need to use the method that Aaron talks about.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.