This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
The UpdateNotification method configures SQL Server Agent operator notification for alerts raised.
When setting the AlertOrOperator argument of the UpdateNotification method of the Alert object, the string identifies an existing operator by name. When setting the argument for the Operator object method, the string identifies an existing alert by name.
Set NotificationType by using these values.
Notification by e-mail, e-mail sent to the pager address, and network pop-up message.
Notification by e-mail sent to the operator e-mail address.
Notification by network pop-up message posted to the operator network address
No notification method specified for the referenced operator.
Notification by e-mail sent to the operator pager address.
The AddNotification method associates operators with alerts. Operators designated receive notification messages when an event raising an alert occurs. When an alert is raised, notification can be sent using e-mail, network pop-up message, or pager. The AddNotification method allows specification of one or more notification mechanisms when operators are assigned notification for an alert.
The RemoveNotification method removes all operator notification mechanisms for an alert. Use the UpdateNotification method to alter the notification mechanism without dropping the association between an alert and operator.