|
|
|
Forum 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?
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Wednesday, April 03, 2013 12:29 PM
Points: 11,
Visits: 52
|
|
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.
|
|
|
|
|
Forum 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!!
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 1:15 PM
Points: 423,
Visits: 1,948
|
|
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
|
|
|
|