Alert.HasNotification プロパティ

警告が発生したときに通知を受信するように割り当てられている SQL Server エージェントのオペレーターの数を取得します。

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

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property HasNotification As Integer 
    Get
'使用
Dim instance As Alert 
Dim value As Integer 

value = instance.HasNotification
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public int HasNotification { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property int HasNotification {
    int get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member HasNotification : int
function get HasNotification () : int

プロパティ値

型: System.Int32
警告が発生したときに通知するオペレーターの数を示す Int32 値です。

説明

SQL Server エージェントは、警告が発生すると、1 人以上のオペレーターに通知します。 通知は、割り当てとオペレーターの双方が対応可能かどうかに基づいて送信されます。 SQL Server エージェント オペレーターの対応可能な日および時間は、各オペレーターごとに設定されます。 HasNotification プロパティは、通知を受信するように割り当てられているオペレーターの合計数を報告します。警告を発生するイベントの特定の発生に対して、実際に通知を受け取るオペレーターの数ではありません。

使用例

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

関連項目

参照

Alert クラス

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

その他の技術情報

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

sp_add_alert (Transact-SQL)