Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««12

Stairway to SQL Server Agent - Step 3: Agent Alerts and Operators Expand / Collapse
Author
Message
Posted Tuesday, February 21, 2012 12:33 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, November 27, 2012 8:06 AM
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?
Post #1255522
Posted Tuesday, February 21, 2012 2:41 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, May 30, 2014 11:41 AM
Points: 11, Visits: 62
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.



Post #1255608
Posted Tuesday, February 21, 2012 3:05 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, November 27, 2012 8:06 AM
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!!
Post #1255626
Posted Friday, May 4, 2012 10:47 AM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: 2 days ago @ 11:43 AM
Points: 436, Visits: 2,262
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
Post #1295398
« Prev Topic | Next Topic »

Add to briefcase ««12

Permissions Expand / Collapse