Share via


Alerts Collection

この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。新しい開発作業では、この機能の使用を避け、現在この機能を使用しているアプリケーションは修正するようにしてください。

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

現在のオブジェクトを表す SQL-DMO オブジェクト モデル

説明

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