Export (0) Print
Expand All

AlertSystem Object

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

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

SQL-DMO object model that shows the current object

The AlertSystem object represents properties set for a single instance 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:

  • Register an operator for fail-safe response.
  • Change the look of address lines on e-mail and pager notices sent as part of alert notification.
To change the alert notification behavior of 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 SQL Server Agent.

Community Additions

ADD
Show:
© 2014 Microsoft