AlertSystem Object (SQL-DMO)

The AlertSystem object represents properties and behaviors of the SQL Server Agent alert notification for all defined alerts.

Remarks

The AlertSystem object represents properties set for a single installation of SQL Server Agent. There is a single AlertSystem object for a SQLServer object, and new AlertSystem objects cannot be created.

With the AlertSystem object, you can:

To change the alert notification behaviors of a SQL Server Agent

  1. Get the AlertSystem object from the JobServer object of a connected SQLServer object.
  2. Use the BeginAlter method to mark the start of changes to the object properties.
  3. Change property values to reflect changes in alert notification behavior.
  4. Use the DoAlter method to mark the end of changes and submit them to the SQL Server Agent.
Methods
BeginAlter Method DoAlter Method
CancelAlter Method Refresh Method

Properties
FailSafeOperator Property PagerCCTemplate Property
ForwardAlways Property PagerSendSubjectOnly Property
ForwardingServer Property PagerSubjectTemplate Property
ForwardingSeverity Property PagerToTemplate Property
NotificationMethod Property  

See Also
Defining Operators Forwarding Events

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.