Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

How to avoid Insert and Update conflict in SQL Server Merge Replication?

$
0
0

I have developed a web application using Asp.net Rest Api, Entity Framework code-first approach. I have publisher with 20-30 subscribers. All my subscribers may work online or offline. After setting up merge replication, I have faced insert and update conflicts.

The easiest way I have solved this problem using autonumber PK's is to change the autonumber increment from 1 to 10 (or 100, or 1000, whatever is required) then set the seed differently on all the participants. But this is not sufficient.

Kindly suggest a solution with a example.


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>