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 am using merge replication in SQL 2012 with web sync.

When I insert records into the top tables in my filter hierarchy it causes a lot of locking on the tables, including the merge replication tables such as MSMerge_contents.

It means that no other process can insert into the same tables at the same time.

Because of my particular setup this is a problem. Is there a way to reduce the amount of locking / blocking that occurs in the merge replication insert triggers?

share|improve this question
up vote 3 down vote accepted

What is occurring here is not what it appeared to be. The stored procedure to write into my top level tables were using transactions.

It was the transactions that were causing heaps of extra locks. It worked fine once those transactions were removed.

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.