語言

PullSubscription.DistributorName 屬性

定義

取得或設定 Microsoft SQL Server 的實例,該實例作為發行者,並分發訂閱所訂閱的出版品。

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

屬性值

發行商名稱。

備註

DistributorName 是必須的屬性,必須在伺服器上建立訂閱前設定。 一旦訂閱註冊存在於伺服器上,該 DistributorName 屬性就無法更改。

DistributorName該屬性僅能由訂閱者中固定伺服器角色的成員sysadmin或訂閱資料庫中固定資料庫角色的成員db_owner取得。

DistributorName 屬性只能由訂閱者中固定 sysadmin 伺服器角色的成員,或訂閱資料庫中固定 db_owner 資料庫角色的成員設定。

取回 DistributorName 該財產等同於執行 sp_helppullsubscription(Transact-SQL)sp_helpmergepullsubscription(Transact-SQL)

設定屬性 DistributorName 相當於執行 sp_addpullsubscription(Transact-SQL)sp_addmergepullsubscription(Transact-SQL)

適用於