September 14, 2009 at 3:04 pm
Failures, success, or completions? The present database mail configuration works great for a single operator to receive a single job status… success or fail or complete. However, if I want to assign
multiple operators of the same job’s status, the operator window drop down menu of the job properties dialog box limits me to assign one operator at a time. Thanks to everyone for being there to help.
SQL 05 SP3
September 14, 2009 at 4:27 pm
You can add multiple email addresses to an operator by separating the addresses with a semicolon. Also, you could create an active directory distribution group with all the users and add the distribution group's email address to the operator.
September 14, 2009 at 7:39 pm
I'll recommend the same as of Edogg to create an active directory distribution group with all the users and add the distribution group's email address to the operator. It is easy to maintain like adding and removing users from active directory group. Also you can use the same group email address in multiple jobs otherwise you have to modify every job when you have to add or delete an email address.
September 15, 2009 at 6:51 am
Thanks for the replay, i already have a group and every one receving an email, but my question is how to send a auto email when job is start, when job is failed or when job is successed
September 15, 2009 at 8:59 am
Since you can only use built-in notification for one of those, I would put EXEC xp_sendmail in a couple of job steps for the other two situations. For example, to notify the operators that the job has started (which I, personally, think is unnecessary), make the first step send an email with that information in @subject and/or @message.
Incidentally, it seemed pretty clear, given the title and content of your original post, that you were asking how to send job notification to multiple operators, so it's no surprise the first two replies answered that question.
Greg
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply