for a more complete explanation consult
http://www.simple-talk.com/sql/database-administration/the-identity-crisis-in-replication/ However to be brief if you don't do this you will get pk collisions on each
side.
Consider this case you have an empty table with identity(1,1). You insert a
row on the publisher and one on the subscriber, both dist agents run, and
both will attempt to insert another row with a pk value of 1 on the other
side. This is a pk collision and your distribution agent will fail. To get
around this you have odd on one side and even on the other.
You need to run checkident to make all current values on the publisher odd,
and all current value on the subscriber as even as the increment will
otherwise not partition correctly.
Consider this case. You give your publisher an odd seed. The table already
has values in it, the last one 2. You back it up and restore it on the
subscriber, and give it an even seed.
The first row you insert in the publisher will have a value of 4, unless you
fix the current identity value to 3. Hence you blow your partitioning unless
you fix the seeds and the current identity value.
--
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.
This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.
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] <almurph@altavista.com> wrote in message
news:1156944126.220382.141440@h48g2000cwc.googlegroups.com...
> Hilary,
>
> Thanks a million for the advice but unfortunately I don't understand
> what you have said. (I'm definitely going to buy your book!)
> I get the bit about "not for replication" on the tables (thanks for
> that - didn't realise that)but what is the identity seed that you are
> referring to? Afraid I don't understand that stuff. Can you help me
> please?
>
> Fascinated and appreciative,
> Al.
>