语言

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)

适用于