Operator.UpdateNotification メソッド

警告とオペレーターとの関連付けを削除せずに通知方法を変更します。

名前空間:  Microsoft.SqlServer.Management.Smo.Agent
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
Public Sub UpdateNotification ( _
    alertName As String, _
    notifymethod As NotifyMethods _
)
'使用
Dim instance As [Operator]
Dim alertName As String 
Dim notifymethod As NotifyMethods

instance.UpdateNotification(alertName, _
    notifymethod)
public void UpdateNotification(
    string alertName,
    NotifyMethods notifymethod
)
public:
void UpdateNotification(
    String^ alertName, 
    NotifyMethods notifymethod
)
member UpdateNotification : 
        alertName:string * 
        notifymethod:NotifyMethods -> unit
public function UpdateNotification(
    alertName : String, 
    notifymethod : NotifyMethods
)

パラメーター

説明

AddNotification メソッドは、オペレーターを警告に関連付けます。 指定されたオペレーターは、警告を生成するイベントが発生すると通知メッセージを受信します。 警告が発生したときに、電子メール、ネットワークの Net Send メッセージ、またはポケットベルを使用して通知を送信できます。 AddNotification メソッドを使用すると、オペレーターに警告の通知を割り当てる際に 1 つ以上の通知メカニズムを指定できます。

RemoveNotification メソッドは、警告に対するすべてのオペレーター通知メカニズムを削除します。 UpdateNotification メソッドを使用すると、警告とオペレーターとの関連付けを削除せずに通知メカニズムを変更できます。

使用例

SQL Server エージェントでの自動管理タスクのスケジュール設定

関連項目

参照

Operator クラス

Microsoft.SqlServer.Management.Smo.Agent 名前空間

その他の技術情報

管理タスクの自動化 (SQL Server エージェント)

sp_update_notification (Transact-SQL)