Udostępnij za pośrednictwem


ReplicationServer.DistributionServer Property

Definition

Gets or sets the name of the Distributor for the currently connected instance of SQL Server.

public:
 property System::String ^ DistributionServer { System::String ^ get(); void set(System::String ^ value); };
public string DistributionServer { get; set; }
member this.DistributionServer : string with get, set
Public Property DistributionServer As String

Property Value

A String value that specifies the instance of SQL Server that is the Distributor.

Exceptions

When the string is null, is improperly formatted, or exceeds 128 bytes.

Remarks

The DistributionServer property is equivalent to the sp_get_distributor (Transact-SQL) stored procedure.

The DistributionServer property can be retrieved by the public fixed database role.

The DistributionServer property can be set only by the sysadmin fixed server role.

Applies to