PullSubscription.PublisherName 属性

定义

获取或设定 Publisher 的名字。

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

属性值

发布服务器的名称。

注解

PublisherName 是必修属性,必须在服务器创建订阅前设置。 一旦订阅注册存在服务器,属性 PublisherName 就无法更改。

PublisherName该属性只能由订阅者中固定服务器角色的成员sysadmin或订阅数据库中固定数据库角色的成员db_owner检索。

PublisherName 属性只能由订阅者固定服务器角色的成员 sysadmin 或订阅数据库中固定数据库角色的成员 db_owner 设置。

取回 PublisherName 该属性等同于执行 sp_helppullsubscription(Transact-SQL)sp_helpmergepullsubscription(Transact-SQL)

设置属性 PublisherName 相当于执行 sp_addpullsubscription(Transact-SQL)sp_addmergepullsubscription(Transact-SQL)

适用于

另请参阅