The Alert object represents a single SQL Server Agent alert. Alerts respond to either specific Microsoft® SQL Server™ error messages or SQL Server errors of a specified severity.
You can use the Alert object to create and manage SQL Server Agent alerts:
The Name property of an Alert object uses the SQL Server data type sysname. The string must be a unique value for each Alert object in the Alerts collection.
SQL Server does not allow the creation of more than one alert on any given error condition or severity level. More than one alert can be defined on a specific message identifier; however, each alert defined must be limited in scope by associating the alert with a specific database.
SQL Server alerts are enabled by default. However, an alert created with the minimum required values will fire no notifications. You must assign operators to the alert by using the AddNotification method of the Alert or Operator object.
To create an alert
To alter an existing alert
Defining Alerts | Operator Object |