Condividi tramite


Alerts Collection

Questa caratteristica verrà rimossa a partire da una delle prossime versioni di Microsoft SQL Server. Evitare di utilizzare questa caratteristica in un nuovo progetto di sviluppo e prevedere interventi di modifica nelle applicazioni in cui è attualmente implementata.

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

Modello a oggetti SQL-DMO in cui è visualizzato l'oggetto corrente

Osservazioni

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")