后续版本的 Microsoft SQL Server 将删除该功能。请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。
The Alerts collection contains Alert objects that reference SQL Server Agent alerts.
Methods
|
备注
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")