TransArticle.InsertCommand プロパティ

挿入をレプリケートするのに使用するコマンドを取得します。値の設定も可能です。

名前空間:  Microsoft.SqlServer.Replication
アセンブリ:  Microsoft.SqlServer.Rmo (Microsoft.SqlServer.Rmo.dll)

構文

'宣言
Public Property InsertCommand As String 
    Get 
    Set
'使用
Dim instance As TransArticle 
Dim value As String 

value = instance.InsertCommand

instance.InsertCommand = value
public string InsertCommand { get; set; }
public:
property String^ InsertCommand {
    String^ get ();
    void set (String^ value);
}
member InsertCommand : string with get, set
function get InsertCommand () : String 
function set InsertCommand (value : String)

プロパティ値

型: System.String
挿入コマンドを指定する String 値です。

説明

InsertCommand プロパティの形式と内容は、sp_addarticle@ins\_cmd パラメーターに指定したものと一致する必要があります。

既存のアーティクルの InsertCommand プロパティを変更するには、サブスクリプションを再初期化して、新しいスナップショットを生成する必要があります。

InsertCommand プロパティを取得できるのは、パブリッシャー側の固定サーバー ロール sysadmin のメンバー、パブリケーション データベースの固定データベース ロール db_owner のメンバー、パブリケーション アクセス リスト (PAL) のメンバーであるユーザーだけです。

InsertCommand プロパティを設定できるのは、パブリッシャー側の固定サーバー ロール sysadmin のメンバーだけです。 また、パブリケーション データベースの固定データベース ロール db_owner のメンバーも設定できます。

InsertCommand を取得すると、sp_helparticle を実行したのと同じことになります。

InsertCommand を設定すると、sp_addarticle または sp_changearticle を実行したのと同じことになります。

関連項目

参照

TransArticle クラス

Microsoft.SqlServer.Replication 名前空間