共用方式為


TransArticle.CommandFormat Property

Definition

Gets or sets how changes are propagated for the article.

public:
 property Microsoft::SqlServer::Replication::CommandOptions CommandFormat { Microsoft::SqlServer::Replication::CommandOptions get(); void set(Microsoft::SqlServer::Replication::CommandOptions value); };
public Microsoft.SqlServer.Replication.CommandOptions CommandFormat { get; set; }
member this.CommandFormat : Microsoft.SqlServer.Replication.CommandOptions with get, set
Public Property CommandFormat As CommandOptions

Property Value

A CommandOptions value.

Remarks

Changing the CommandFormat property of an existing article requires that subscriptions be reinitialized.

The CommandFormat property can only be retrieved by members of the sysadmin fixed server role at the Publisher, by members of the db_owner fixed database role on the publication database, and by users who are members of the PAL.

The CommandFormat property can only be set by members of the sysadmin fixed server role at the Publisher. It can also be set by members of the db_owner fixed database role on the publication database.

Retrieving CommandFormat is equivalent to executing sp_helparticle.

Setting CommandFormat is equivalent to executing sp_addarticle or sp_changearticle.

Applies to