The AlertCategories collection contains Category objects referencing SQL Server Agent alert categories.
With the AlertCategories collection, you can create and maintain names grouping Microsoft® SQL Server™ alerts.
The AlertCategories collection contains, at a minimum, a Category object named [Uncategorized] and one named Replication.
To create an alert category
To remove an alert category
oJobServer.AlertCategories.Remove("Northwind")
Note Alerts are recategorized as necessary when an alert category is removed. Any alerts previously exhibiting the removed category exhibit the category [Uncategorized] after the Remove method completes.
Add Method | Refresh Method |
ItemByID Method | Remove Method (Collections) |