Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to create a step in a Job for Merge Replication. I basically want to know which command should I write so that a particular Subscription starts synchronizing?

enter image description here

share|improve this question

migrated from Mar 27 '12 at 16:20

This question came from our site for professional and enthusiast programmers.

up vote 1 down vote accepted

When you create your replication, it will automatically create a job with all of the steps needed for replication if you use the GUI.

Step 1: Merge Agent Startup Message. Type T-SQL ran on the distribution database

Step 2: Run Agent. Type Replication Merge. The command will be something like: -Publisher [] -PublisherDB [] -Publication [] -Subscriber [] -SubscriberDB [] -Distributor [] -DistributorSecurityMode 1

Step 3: Detect nonlogged agent shutdown. Type T-SQL sp_MSDetect_nonlogged_shutdown @ subsystem='Merge', @agentid=

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.