TransPublication.ConflictPolicy Property

Definition

Gets or sets the conflict policy for publications that support updating subscriptions.

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

Property Value

A ConflictPolicyOption value.

Remarks

The ConflictPolicy 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, or by users in the publication access list (PAL).

The ConflictPolicy property can only be set by members of the sysadmin fixed server role at the Publisher or by members of the db_owner fixed database role on the publication database. Users in the PAL can set the ConflictPolicy property of an existing publication.

Retrieving the ConflictPolicy property is equivalent to executing sp_helppublication.

Setting the ConflictPolicy property is equivalent to executing sp_addpublication and sp_changepublication.

Applies to