Export (0) Print
Expand All

MergeSynchronizationAgent.Synchronize Method

Starts the Merge Agent to synchronize the subscription.

Namespace: Microsoft.SqlServer.Replication
Assembly: Microsoft.SqlServer.Replication (in microsoft.sqlserver.replication.dll)

public:
virtual void Synchronize ()
public void Synchronize ()
public function Synchronize ()

This method synchronously starts the Merge Agent. To start the Merge Agent asynchronously, call SynchronizeWithJob for a pull subscription or SynchronizeWithJob for a push subscription.

Calling Synchronize is same as calling the Initialize, Run, and Terminate methods on the SQLMerge Object (Replication ActiveX).


In the following example, the Synchronize method is called on the instance of the MergeSynchronizationAgent class accessed from the SynchronizationAgent property to synchronize the push subscription.

No code example is currently available or this language may not be supported.

In the following example, an instance of the MergeSynchronizationAgent class is used to synchronize a merge subscription. Because the pull subscription was created by using a value of false for CreateSyncAgentByDefault, additional properties must be supplied.

No code example is currently available or this language may not be supported.

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

Community Additions

ADD
Show:
© 2014 Microsoft