Поделиться через


Свойство 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> _
Public Property ForwardingServer As String
    Get
    Set
'Применение
Dim instance As AlertSystem
Dim value As String

value = instance.ForwardingServer

instance.ForwardingServer = value
[SfcPropertyAttribute]
public string ForwardingServer { get; set; }
[SfcPropertyAttribute]
public:
property String^ ForwardingServer {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute>]
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.