ReplicationServer.DistributionDatabase 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得目前連接的 SQL Server 實例的分發資料庫名稱。
public:
property System::String ^ DistributionDatabase { System::String ^ get(); };
public string DistributionDatabase { get; }
member this.DistributionDatabase : string
Public ReadOnly Property DistributionDatabase As String
屬性值
一個 String 指定分發資料庫名稱的值。
備註
這個DistributionDatabase屬性只有在目前伺服器是 Publisher 時才有效。 屬性的值trueIsPublisher表示該伺服器是 Publisher。
此 DistributionDatabase 屬性只能由系統管理員固定伺服器角色的成員設定。
DistributionDatabase此屬性僅能由分發器中系統管理員固定伺服器角色的成員,或是分發資料庫中固定資料庫db_owner成員取得。