x

Job alerting

Morning all. Could anyone tell me the location where I would change the details sent in the email header for a SQL Alert I have set up. Require to change the server name from from the header.Seems to set as default machine name , need to amend it.

many thanks
more ▼

asked May 17 '12 at 07:29 AM in Default

mickyd gravatar image

mickyd
162 10 11 11

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

Alerts are configured in SSMS under SQL Server Agent -> Alerts.

If you have configured the alert to run a specific job and the email is being sent from there using sp_send_dbmail, then you can change the subject line.

If you are using the inbuilt email notification and are getting subject lines such as :

SQL Server Alert System: 'Alert name here' occurred on \\YourServer

Then I'm not sure you can change the subject line.

What are you getting and what do you want to change?
more ▼

answered May 17 '12 at 07:37 AM

Kev Riley gravatar image

Kev Riley ♦♦
50.8k 43 49 76

Hi Kev Thanks for your reply. I am using the inbuilt email function. I want to change the 'Alert name here' occurered on \Yourserver.

I want to change the \Yourserver name to something other than default server name.

cheers
May 17 '12 at 07:44 AM mickyd
AFAIK you can't change that. The workaround would be to have a job that calls a stored procedure that generates your own email (subject line etc), and then change the Alert properties (in Response tab) to execute the job.
May 17 '12 at 07:53 AM Kev Riley ♦♦
Why wouldn't you want to see what server is firing the alert?
May 17 '12 at 07:59 AM Kev Riley ♦♦
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x1933

asked: May 17 '12 at 07:29 AM

Seen: 676 times

Last Updated: May 17 '12 at 07:59 AM