Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Resetting Identity Increment

Author  Topic 

amsqlguy
Yak Posting Veteran

89 Posts

Posted - 2011-10-11 : 17:56:49
Guys,

I am trying to setup merge replication between two 600 table database, is there a generic script to reset the identity increment on one database to have even numbers and another to have odd number.

Any suggestions/inputs would help

Thanks

Bustaz Kool
Master Smack Fu Yak Hacker

1834 Posts

Posted - 2011-10-11 : 20:20:04
Usually replication uses ranges of values to keep the different systems from colliding on non-unique identity values. (e.g., I'll use 1-1,000,000 and you use 2,000,000-3,000,000, etc.). If that approach works for you, you could use DBCC CHECKIDENT to reset the identity values for the tables on one system to a higher range.

=======================================
Faced with the choice between changing one's mind and proving that there is no need to do so, almost everyone gets busy on the proof. -John Kenneth Galbraith
Go to Top of Page
   

- Advertisement -