Partilhar via


ReinitializeSubscription Method (Replication ActiveX)

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

Syntax

object.ReinitializeSubscription [bUploadBeforeReinit]
Part Description

object

Expression that evaluates to an object in the Applies To list.

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. This parameter is only supported for the SQLMerge Object (Replication ActiveX) object.

Applies To

SQLDistribution Object (Replication ActiveX)

SQLMerge Object (Replication ActiveX)

Return Value

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.

Remarks

ReinitializeSubscription for the SQLMerge Object (Replication ActiveX) object has the bUploadBeforeReinit parameter. For the SQLDistribution Object (Replication ActiveX) object, ReinitializeSubscription takes no parameters.

The Initialize Method (Replication ActiveX) should not be called prior to using ReinitializeSubscription.

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.