TransPullSubscription.SynchronizeWithJob Method ()
Starts the agent job to synchronize the subscription.
Assembly: Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)
If the pull subscription is created with a value of false for CreateSyncAgentByDefault, the default, a Distribution Agent job for the subscription is not created and calling causes an exception.
Call the StopSynchronizationJob method to stop the job if it is currently running.
The job is not able to start if the Microsoft SQL Server Agent Service is not running. Also if a snapshot is not generated, running the agent job may not synchronize the subscription.
Themethod can only be called by members of the sysadmin fixed server role at the Subscriber or by members of the db_owner fixed database role on the subscription database.