Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

MergeSubscription.Reinitialize Method

Marks the merge subscription for reinitialization.

Namespace:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)

public void Reinitialize(
	bool uploadFirst


Type: Boolean
A Boolean value that specifies whether to upload all changes from the Subscriber before reapplying the snapshot to reinitialize the subscription. If true, the changes are uploaded before applying the snapshot. If false, the changes are not uploaded.

After calling the Reinitialize method, you must start synchronization to reinitialize the subscription. For more information, see How to: Reinitialize a Subscription (RMO Programming).

The Reinitialize method can only be called by members of the sysadmin fixed server role at the Publisher or by members of the db_owner fixed database role on the publication database.

Calling Reinitialize is equivalent to executing sp_reinitmergesubscription.

Community Additions

© 2015 Microsoft