ReplicationServer.DistributionServer Proprietà

Definizione

Ottiene o imposta il nome del Distributore per l'istanza attualmente connessa di 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

Valore della proprietà

Un String valore che specifica l'istanza di SQL Server che è il Distributore.

Eccezioni

Quando la stringa è nulla, è formattata in modo errato o supera i 128 byte.

Commenti

La DistributionServer proprietà è equivalente alla procedura sp_get_distributor (Transact-SQL) memorizzata.

La DistributionServer proprietà può essere recuperata tramite il ruolo pubblico di database fisso.

La DistributionServer proprietà può essere impostata solo dal ruolo fisso del sysadmin.

Si applica a