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

プロパティ値

発行元の名前。

注釈

SQL Server Publisherに属するサブスクリプションに対してPublisherNameプロパティを指定する場合、例外が適用されます。

PublisherName は必須プロパティであり、サーバー上でサブスクリプションを作成する前に設定する必要があります。 一度サブスクリプションがサーバーに存在すると、 PublisherName プロパティは変更できません。

PublisherNameプロパティは、Publisherのsysadmin固定サーバーロールのメンバー、出版データベースのdb_owner固定データベースロールのメンバー、またはサブスクリプションを作成したユーザーのみが取得可能です。

PublisherNameプロパティは、Publisherのsysadmin固定サーバーロールのメンバーか、出版データベース上のdb_owner固定データベースメンバーのみが設定可能です。

PublisherNameプロパティの取得はsp_helpsubscription(Transact-SQL)を実行するのと同等です。

PublisherNameプロパティを設定することはsp_addsubscription(Transact-SQL)を実行するのと同等です。

適用対象