Export (0) Print
Expand All

ReinitializeSubscription Method

SQL Server 2000

ReinitializeSubscription Method

Applications call the ReinitializeSubscription method to mark a subscription for reinitialization. After calling the ReinitializeSubscription method, the application must call the Initialize, Run, and Terminate methods to download the latest snapshot of the publication to the Microsoft® Windows® CE-based device.

Applies To

SQL Server CE Replication object

Syntax
object.ReinitializeSubscription(bUploadBeforeReInit)
Part Description
object SQL Server CE Replication 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.
Prototype eVC++
HRESULT ReinitializeSubscription(VARIANT_BOOL bUploadBeforeReInit);
Returns
Return code Description
S_OK Method succeeded.
Any FAILED(HRESULT) Check the SSCEErrors collection for detailed error information.
Remarks

A flag is marked in the subscription system table in Microsoft SQL Server™ 2000 Windows CE Edition (SQL Server CE) to signify that during the next synchronization, the subscription should be reinitialized. After calling the ReinitializeSubscription method, the application must call the Initialize, Run, and Terminate methods to delete the existing replica and download a new replica of the publication to the Windows CE-based device.

See Also
Replication Object Methods
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft