ReplicationServer.DistributionServer 屬性

定義

取得或設定目前連接的 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

屬性值

一個String指定 SQL Server 實例(即 Distributor)的值。

例外狀況

當字串為空、格式錯誤或超過 128 位元組時。

備註

DistributionServer 性質等同於 sp_get_distributor (Transact-SQL) 儲存程序。

DistributionServer該屬性可由公開固定資料庫角色檢索。

這個 DistributionServer 屬性只能由系統管理員固定伺服器角色設定。

適用於