Publication.PostSnapshotScript プロパティ

定義

サブスクライバーに初期スナップショットが適用された後に実行される Transact-SQL スクリプトファイルの名前とフルパスを取得します。

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

プロパティ値

String の値。

注釈

PostSnapshotScriptプロパティは、Publisherのsysadmin固定サーバーロールのメンバー、出版データベースのdb_owner固定データベース役割のメンバー、または出版アクセスリスト(PAL)のユーザーのみが取得できます。

PostSnapshotScriptプロパティは、Publisherのsysadmin固定サーバーロールのメンバーか、出版データベース上のdb_owner固定データベースメンバーのみが設定可能です。 PALのユーザーは既存の出版物の PostSnapshotScript プロパティを設定できます。

PostSnapshotScriptプロパティの取得は、sp_helppublication(Transact-SQL)またはsp_helpmergepublication(Transact-SQL)を実行するのと同等です。

PostSnapshotScriptプロパティを設定することは、sp_addpublication(Transact-SQL)sp_changepublication(Transact-SQL)またはsp_addmergepublication(Transact-SQL)、sp_changemergepublication(Transact-SQL)を実行するのと同等です。

適用対象