Freigeben über


Alerts Collection

Dieses Feature wird in einer zukünftigen Version von Microsoft SQL Server entfernt. Verwenden Sie dieses Feature beim Entwickeln neuer Anwendungen nicht, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird.

The Alerts collection contains Alert objects that reference SQL Server Agent alerts.

SQL-DMO-Objektmodell, das das aktuelle Objekt anzeigt

Methods

Add Method

Remove Method (Collections)

ItemByID Method

Script Method

Refresh Method

 

Hinweise

With the Alerts collection, you can:

  • Create a Microsoft SQL Server alert.
  • Completely remove a SQL Server alert.

For information about creating SQL Server alerts, see Alert Object.

To remove an alert

  • Use the Remove method of the Alerts collection of a connected JobServer object. Indicate the targeted alert using the alert name or the ordinal location in the collection, as in:

    oJobServer.Alerts.Remove("Full Northwind")