Updates the notification method of an alert notification.
- [ @alert_name =] 'alert'
The name of the alert associated with this notification. alert is sysname, with no default.
- [ @operator_name =] 'operator'
The operator who will be notified when the alert occurs. operator is sysname, with no default.
- [ @notification_method =] notification
The method by which the operator is notified. notification is tinyint, with no default, and can be one or more of these values.
sp_update_notification must be run from the msdb database.
You can update a notification for an operator who does not have the necessary address information using the specified notification_method. If a failure occurs when sending an e-mail message or pager notification, the failure is reported in the Microsoft SQL Server Agent error log.
The following example modifies the notification method for notifications sent to
François Ajenstat for the alert
USE msdb ; GO EXEC dbo.sp_update_notification @alert_name = N'Test Alert', @operator_name = N'François Ajenstat', @notification_method = 7; GO