TransArticle.InsertCommand プロパティ

定義

挿入を複製するために使うコマンドを取得したり設定したりします。

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

プロパティ値

insertコマンドを指定する String 値です。

注釈

InsertCommandプロパティの形式と内容は、sp_addarticle@ins_cmdパラメータで指定されたものと一致しなければなりません。

既存の記事の InsertCommand プロパティを変更するには、サブスクリプションの初期化と新しいスナップショットの生成が必要です。

InsertCommandプロパティは、Publisherのsysadmin固定サーバーロールのメンバー、出版データベースのdb_owner固定データベース役割のメンバー、そして出版アクセスリスト(PAL)のメンバーであるユーザーのみが取得可能です。

InsertCommandプロパティはPublisherのsysadmin固定サーバー役割のメンバーのみが設定可能です。 また、出版データベース上の db_owner 固定データベースの役割のメンバーによって設定することもできます。

InsertCommandの取得はsp_helparticleを実行するのと同等です。

InsertCommand設定はsp_addarticlesp_changearticleを実行するのと同等です。

適用対象