AddNotification Method

SQLServer.Operator Object

Description

Adds a new alert to the list of alerts that notify this operator when the alert fires.

Visual Basic

Operator.AddNotification (
[AlertName :=] strAlert,
[NotifyMethod :=] tNotify )

C++

HRESULT pOperator->AddNotification (
SQLOLE_LPCSTR
strAlert,
SQLOLE_NOTIFY_TYPE
tNotify );

Elements

Element Type Description

strAlert String Alert that will notify this Operator when the alert fires
tNotify SQLOLE_NOTIFY_TYPE Type of notification to use

Reference

sp_addnotification