ReinitializeSubscription Method

Replication Programming

Replication Programming

ReinitializeSubscription Method

The ReinitializeSubscription method configures a subscription to reapply the initial snapshot and subsequent changes during the next Run operation.

Applies To

SQLDistribution Object

SQLMerge Object

Syntax

object.ReinitializeSubscription [bUploadBeforeReinit]

Part Description
object Expression that evaluates to a SQLMerge object.
bUploadBeforeReinit If True, the changes in the subscription database are uploaded to the Publisher before the snapshot is applied at the Subscriber. The default is False.
Remarks

ReinitializeSubscription is a method of both the SQLDistribution and SQLMerge objects. ReinitializeSubscription for the SQLMerge object has the bUploadBeforeReinit parameter. For the SQLDistribution object, ReinitializeSubscription has no parameters.

In Microsoft® Visual Basic®, ReinitializeSubscription is a Sub method and does not return a value.

Prototype (C/C++)

HRESULT ReinitializeSubscription(VARIANT_BOOL bUploadBeforeReinit);

Return code Description
S_OK Method succeeded.
E_FAIL General failure occurred. Check error records for detailed information.
REPLX_E_DEADLOCK Deadlock occurred.
REPLX_E_RETRYFAILURE Failure occurred that might require retrying the last operation.