Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Conflict Replication

 
   Database Help (Home) -> Replication RSS
Next:  What agent executes sp_adjustpublisheridentityran..  
Author Message
Rahul

External


Since: Aug 08, 2008
Posts: 1



(Msg. 1) Posted: Fri Aug 08, 2008 8:08 am
Post subject: Conflict Replication
Archived from groups: microsoft>public>sqlserver>replication (more info?)

Hi,
We have a merge replication between our 3 SQL servers at 3 different
locations. 1 is the Publisher and 2 are subscribers. We have PK on a table.
(unique field which is auto incremental by 1) On the Publisher if the user
creates a new order, the table assigns it a number e.g. 1000 in the unique
field (auto-incremented), and at the same time a user enters a new order in
the Subscriber which is also assigned a number i.e. 1000 in the unique field
(auto-incremented). Now when the merge replication takes place, since the
unique number i.e. 1000 has allready been assigned on the Publisher, the
details for order number 1000 on the Subscriber is not updated on the
Publisher due to Primary Key constraints and a conflict arises. In this
scenario we would loose data on the subscriber due to the primary key
constraint conflict.

This would leave the user very frustrated as he would have to redo the
order. How do we resolve this situation whereby both the subscriber and the
Publisher order number is replicated without creating any conflicts.

This is really urgent, so any help soon will be highly appreciated.

If you want schema of the tables and the replication design, we can provide
you with that.

Thanks.
Rahul

 >> Stay informed about: Conflict Replication 
Back to top
Login to vote
Paul Ibison

External


Since: Oct 03, 2008
Posts: 93



(Msg. 2) Posted: Fri Oct 03, 2008 8:44 am
Post subject: RE: Conflict Replication [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Rahul - my guess is that you are on SQL Server 2000 and have accepted all the
defaults in creating a merge publication. In this case you'll have to
manually manage the identity ranges - reseed on each subscriber to avoid
overlaps. Ideally you want SQL Server to do all this for you and the option
is there - on the article properties there is a tab for automatic identity
range management. Unfortunately you can't set it retrospectively so you'll
need to reinitialize to have it managed automatically. Note that it is
automatic by default on SQL 2005!
HTH,
Paul Ibison (www.replicationanswers.com)

 >> Stay informed about: Conflict Replication 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
merge replication conflict - Hi SQL server expert, I have a merge replication. The table has a primary key and an identity column. when I insert one row at the publisher and one row at the subscriber with the same key, I got two conflicts after syncronization, nothing got..

"publisher always wins conflict" resolver? (for merge repl.. - hi, i've searched but haven't found a definite answer on this. is there a conflict resolver where the publisher always wins? that would seem sensible in our situation. i've found 2 conflict resolvers listed that might be relevant, but the names are..

Merge Replication: Would changing the subscriber IP addres.. - Hi, I need to migrate 3 replicated databases to new servers running SQL2K on Windows 2003 standard, each server exist in different state with continues merge replication. Since the Databases around 40GB with big number of BLOBS I'm planning to follow...

Replication-Replication Distribution Subsystem: agent (nul.. - After migrate SQL 2000 replication to SQL 2005, by script and have maked some changes, like drop some publications and have added many articles in one, this message has appered so often: Replication-Replication Distribution Subsystem: agent (null)..

Merge Replication nested view replication problem - I am using SQL 2005 as pub and SQL EXPRESS as sub with Merge replication. Got the following error message The schema script 'CD_InTransit_v_153.sch' could not be propagated to the subscriber. Error Detail: The schema script 'CD_InTransit_v_153.sch'..
   Database Help (Home) -> Replication All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]