x
login about faq Site discussion (meta-askssc)

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 4 10 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 ♦♦
46.1k 38 43 69

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.

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



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x1834

asked: May 17 '12 at 07:29 AM

Seen: 419 times

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

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.