The ReinitializeSubscription method configures a subscription to reapply the initial snapshot and subsequent changes during the next Run operation.
|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.|
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.
HRESULT ReinitializeSubscription(VARIANT_BOOL bUploadBeforeReinit);
|E_FAIL||General failure occurred. Check error records for detailed information.|
|REPLX_E_RETRYFAILURE||Failure occurred that might require retrying the last operation.|