PublicationType Property (SQL-DMO)

The PublicationType property specifies treatment of data replicated from a Microsoft® SQL Server™ or heterogeneous data source.

Applies To

DistributionPublication Object

Syntax

object.PublicationType [= value]

Part Description
object Expression that evaluates to an object in the Applies To list
value Long integer specifying a type of replication publication as described in Settings

Settings
Constant Value Description
SQLDMOPublication_Merge 2 Referenced publication supports merge replication.
SQLDMOPublication_Snapshot 1 Referenced publication supports snapshot replication.
SQLDMOPublication_Transactional 0 Referenced publication supports transactional replication.
SQLDMOPublication_Unknown 1000 Error condition. No replication support can be determined for the referenced publication.

Remarks

SQL Server supports replicating data from heterogeneous data sources to servers running SQL Server. Set PublicationType to expose the composition of data. For example, when replicating an entire heterogeneous table with each synchronization, set PublicationType to SQLDMOPublication_Snapshot.

Data Type

Long, enumerated

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetPublicationType(
SQLDMO_PUBLICATION_TYPE* pRetVal);

HRESULT SetPublicationType(
SQLDMO_PUBLICATION_TYPE NewValue);

  


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