Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Stairway to SQL Server Agent - Step 3: Agent Alerts and Operators


Stairway to SQL Server Agent - Step 3: Agent Alerts and Operators

Author
Message
bstone-1114579
bstone-1114579
Forum Newbie
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: General Forum Members
Points: 6 Visits: 29
Goodness that is the way to automate!
Can that query also setup responses to Notify operators via email and Pager and include alert error text via Email and Pager?
Richard Waymire
Richard Waymire
Grasshopper
Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)

Group: General Forum Members
Points: 11 Visits: 64
Yes. The easiest way is to go set something up like you want it in SSMS, then script out the alert.

And in terms of further automation, your best bet beyond what I wrote would be to investigate scripting the whole thing in powershell.



bstone-1114579
bstone-1114579
Forum Newbie
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: General Forum Members
Points: 6 Visits: 29
That is even more good information... I actually ordered a book on Powershell and it should be in later this week. Thank you!!
mstjean
mstjean
SSC-Addicted
SSC-Addicted (449 reputation)SSC-Addicted (449 reputation)SSC-Addicted (449 reputation)SSC-Addicted (449 reputation)SSC-Addicted (449 reputation)SSC-Addicted (449 reputation)SSC-Addicted (449 reputation)SSC-Addicted (449 reputation)

Group: General Forum Members
Points: 449 Visits: 2540
Note
A common question about operators is how you can send alerts to multiple people. The way you do this is to use mail distribution lists through your email system, as SQL Server Agent will only send alerts to a single operator. You would therefore define the operator in SQL Server Agent as a distribution list, and everyone on the list will then receive the associated alerts.

Or...you can create an operator consisting of multiple individuals. Just separate the email names with a semicolon. A MDL may be preferable but in some cases may not be an option.
(in SQL2005 anyway)


Cursors are useful if you don't know SQL
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search