Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Conflict Resolver for a Merge Article
Old 10-20-2006, 12:55 PM Conflict Resolver for a Merge Article
Junior Talker

Posts: 1
Trades: 0
Hi all,
I am doing a work were i have to syncronize data between a Publiser (PC, SQL SERVER 2005), and a subscriber (Pocket PC, SQL CE MOBILE).
I studied lots of articles and i managed to put the syncronization to work, the problem is in conflict resolution!
The subscriber canīt insert or delet, only update!!

For exmple: I have a table that contais the quantity of a product X, for example 100 units, this goes to Pocket, but later arrive move 100 units that are increased in the PC, so we get 200 in the PC, (but 100 in Pocket), no problem if i syncronize now (Pocket will have 200 too), but if remove in Pocket for example 50 units, i've changed the same column in both Publisher and Subscriber database, if i syncronize now, i'll have a conflict, the final result should be 150 of product X in both databases (100 + 100 - 50), but the Publisher wins the conflict and the final result is 200!

I never worked with stored procedures and in microsoft theres and article called How to: Implement a Stored Procedure-Based Custom Conflict Resolver for a Merge Article (Replication Transact-SQL Programming), but they dont explain it very well and i dont know how to do my own stored procedure and implement it to the merge article.

in my own stored procedure i'll have to do some calculations to get the result i want, maybe using some table for the additions and subtractions.

Maybe some of you have experienced some problem like this, and could help me!
How should i do the stored procedure?

Thanx


TonoBisga is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Conflict Resolver for a Merge Article
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23139 seconds with 12 queries