ExchangeType Property (Replication)
SQL Server 2000
ExchangeType Property (Replication)
The ExchangeType property specifies whether the synchronization between the Publisher and the Subscriber is bidirectional or upload-only.
Applies To
SQL Server CE Replication object
Syntax
object.ExchangeType [= value]
| Part | Description |
|---|---|
| object | SQL Server CE Replication object |
| value | EXCHANGE_TYPE constant that specifies the direction in which data can be merged |
Data Type
EXCHANGE_TYPE
| Constant | Value | Description |
|---|---|---|
| BIDIRECTIONAL | 3 | Merge all changes between the Publisher and Subscriber (Default). |
| UPLOAD | 1 | Only merge Subscriber changes with the Publisher. |
Modifiable
Read/write
Prototype eVC++
HRESULT get_ExchangeType(EXCHANGE_TYPE *pVal); HRESULT put_ExchangeType(EXCHANGE_TYPE newVal);
Remarks
BIDIRECTIONAL is used to first upload data to the Publisher. After the upload is complete, data is then downloaded to the Subscriber. Exchange_Type is forced to BIDIRECTIONAL during initial synchronization or when a ReinitializeSubscription is requested. Microsoft® SQL Server™ 2000 Windows® CE Edition (SQL Server CE) does not support the Exchange_Type value DOWNLOAD.
