Groups | Blog | Home
all groups > sql server replication > february 2007 >

sql server replication : Inserting new records from multiple mobile users



Hilary Cotter
2/25/2007 12:00:00 AM
No, unless you use automatic identity range management or some form of
partition all subscribers will enter the same value and you will have
primary key collisions which will result in conflicts.

--
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]

Polaris431
2/25/2007 1:56:32 AM
When using merge replication and all subscribers use the same
subscription and when two or more subscribers insert new records, does
replication on the server automatically modify the unique ID field for
that record. In other words, if mobile user A inserts a record and the
ID field automatically gets set to 5 and then mobile user B also
inserts a record into the same table and the ID also gets set to 5,
will replication at the server automatically reassign the ID so that
no conflicts take place. After replication is completed, the record
that gets sent to mobile user A might be 10 and the one sent to mobile
user B might be 11. Is this how replication works when inserting data
using merge replication?

Thanks for you help
Polaris
Polaris431
2/25/2007 7:15:52 AM
[quoted text, click to view]
range of IDs for each subscriber. Of course, what happens once your
run out of IDs on the client side?


[quoted text, click to view]

Hilary Cotter
2/25/2007 7:25:55 PM
On SQL 2000 all inserts after exceeding the allotted range would be rolled
back. In SQL 2005 there is a 100% buffer before the inserts get rolled back.

Keep in mind that each time you run a sync the range is incremented, so if
you sync before you exhaust your range and you are over the threshold your
range should be incremented.
--
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]

AddThis Social Bookmark Button