AddNotification Method
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 AddNotification method associates operators with alerts. Operators designated receive notification messages when an event raising the alert occurs.
The NotificationType argument is a bit-packed, long integer value. Specify more than a single notification method by combining values using the OR logical operator.
Constant | Value | Description |
|---|---|---|
SQLDMONotify_All | 7 | Notification by e-mail, e-mail sent to the pager address, and network pop-up message. |
SQLDMONotify_Email | 1 | Notification by e-mail sent to the operator e-mail address. |
SQLDMONotify_NetSend | 4 | Notification by network pop-up message posted to the operator network address. |
SQLDMONotify_None | 0 | No notification method specified for the referenced operator. |
SQLDMONotify_Pager | 2 | Notification by e-mail sent to the operator pager address. |
