AllowMergePublication Property (SQL-DMO)

The AllowMergePublication property returns True when the referenced Microsoft® SQL Server™ database can be published in merge replication.

Applies To

ReplicationDatabase Object

Syntax

object.AllowMergePublication

Part Description
object Expression that evaluates to an object in the Applies To list

Remarks

SQL Server merge publications cannot be created in a database currently configured as a target for a local or anonymous merge Subscriber-originated (pull) subscription. The AllowMergePublication property returns False when local or anonymous merge pull subscriptions target the referenced database.

When using SQL-DMO to create merge publications, remove all local or anonymous pull subscriptions targeting the database by using the Remove method of the MergePullSubscription object, then create the publication. Re-establish local or anonymous pull subscriptions after successful creation of the publication.

Data Type

Boolean

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetAllowMergePublication(LPBOOL pRetVal);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.