Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Example Wanted Conflict Resolution in Java (or C++): Implement a Business Logic Handler for a Merge Article

$
0
0

I'm looking for java code to do conflict resolution under the below senario (or something close to it).

Two clients update the same exact field of a column row. They update the field from 5 to 6. The resolution should be 7 and not 6. In other words, client changes of this field are cumulative.

I want to pretend the database is called "The_Products", the specific table in the database is called "Mid Size Coffee Tables Sold", and the field in the table is "delicate glass tables sold".

So, pretend two clients update the above field to 6, replication takes place, a conflict is detected, and the conflict resolver changes the field to 7.

Also pretend, the resolver has a history of this specific field and knows the field was updated from 5 to 6 on both clients. 

Reference, http://msdn.microsoft.com/en-us/library/ms147911.aspx

Thank you,

P.S.: I'm also looking for a step by step example of how to compile the source code etc. Basically, a good example describing how to use an IDE such as Visual Studio would be something beyond all my expectations.



Viewing all articles
Browse latest Browse all 4054

Trending Articles



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