语言

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

属性值

一个 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

适用于