The Alerts collection contains Alert objects referencing SQL Server Agent alerts.
With the Alerts collection, you can:
For information about creating SQL Server alerts, see Alert Object.
To remove an alert
oJobServer.Alerts.Remove("Full Northwind")
Add Method | Remove Method (Collections) |
ItemByID Method | Script Method |
Refresh Method |