PullSubscription.DistributorName 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置作为分发器的 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)。