AlertSystem.ForwardingServer 속성

Gets or sets the instance of Microsoft SQL Server that will receive forwarded events.

네임스페이스:  Microsoft.SqlServer.Management.Smo.Agent
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property ForwardingServer As String 
    Get 
    Set
‘사용 방법
Dim instance As AlertSystem 
Dim value As String 

value = instance.ForwardingServer

instance.ForwardingServer = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string ForwardingServer { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ ForwardingServer {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member ForwardingServer : string with get, set
function get ForwardingServer () : String 
function set ForwardingServer (value : String)

속성 값

유형: System.String
A String value that specifies the instance of SQL Server that will receive forwarded events.

주의

SQL Server Agent can be configured to forward events to another instance of SQL Server. Alerts defined on the forwarding server are raised when a forwarded event is received.

The IsForwardedAlways property controls whether all events or only those that have no event notification are forwarded to the forwarding server. By default, the IsForwardedAlways property is set to forward events that do not have any event notification on the current instance of SQL Server.

SQL Server 에이전트에서 자동 관리 태스크 예약

참고 항목

참조

AlertSystem 클래스

Microsoft.SqlServer.Management.Smo.Agent 네임스페이스

관련 자료

관리 태스크 자동화(SQL Server 에이전트)

sp_add_alert(Transact-SQL)