语言

TransSubscription.PublisherName 属性

定义

当订阅属于非SQL Server Publisher时,获取或设定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该财产被指定为属于某SQL Server Publisher的订阅时,会抛出例外。

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

PublisherName该属性只能由 Publisher 固定服务器角色的成员sysadmin、发布数据库中固定数据库角色的成员db_owner,或创建订阅的用户检索。

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

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

设置该 PublisherName 属性等同于执行 sp_addsubscription(Transact-SQL)

适用于