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只有當目前的伺服器為發行者時,屬性才有效。 屬性的值 true IsPublisher 表示伺服器為發行者。
DistributionDatabase只有系統管理員(sysadmin)固定伺服器角色的成員,才能設定此屬性。
DistributionDatabase只有在散發者端的系統管理員(sysadmin)固定伺服器角色成員,或散發資料庫中 db_owner 固定資料庫角色的成員,才能抓取此屬性。