Groups | Blog | Home
all groups > sql server replication > september 2005 >

sql server replication : How to prevent from deleting when conflict occured in Merge Replication.


echcom NO[at]SPAM gmail.com
9/19/2005 8:16:15 PM
My Scenario:
I have two database for Merging Replicate: "db_AAA" (publisher) and
"db_BBB" (subscriber).
Both "db_AAA" and "db_BBB" contain a "tbl_KKK" table. "tbl_KKK" are the
same structure in both "db_AAA" and "db_BBB" but not the same records
number.
So, when I update a record in "db_AAA" that not existed in "db_BBB" -->
Conflict ocurred, and the resolver deleted it out from "db_AAA". :(

My Question:
How to prevent resolver to delete record in Publisher or Subscriber
when conflicts occur? That mean, when I edit record in "db_AAA" or
"db_BBB" and conflicts occurr --> I want the conflict record in
"db_AAA" (or "db_BBB") not be deleted.

Anybody help me?
Hilary Cotter
9/20/2005 12:00:00 AM
have a look at the @compensate_for_errors parameter on sp_addmergearticle

--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
[quoted text, click to view]

echcom NO[at]SPAM gmail.com
9/20/2005 8:42:37 PM
It run ok! Thank you very much!

Hilary Cotter vi=E1=BA=BFt b=E1=BB=A9c th=C6=B0 c=C3=B3 n=E1=BB=99i dung:
[quoted text, click to view]
AddThis Social Bookmark Button