Two way replication

  • Hello Guys,

    Can anyone say whether two way replication is possible for tables having IDENTITY SET ON

    e.g.

    TableA

    ID INT NOT NULL IDENTITY(1,1) NOT FOR REPLICATION PRIMARY KEY, NAME VARCHAR(100)

    Can I setup a Two way replication for such tables i.e. If I make a change(Insert/Update/Delete) on Server1, the same change is reflected in Server2 and vice-versa.

    If this is possible, please suggest how to do.

  • This was removed by the editor as SPAM

  • yes, it is possible to set up two way replication. But an extra work need to be done for those primary key identity field. You have to set different seed and the increment for the tables using identity as primary key in the different server, so that the primary key conflict can be avoided. For example : set the seed to 1 on table1 server 1, and set the seed to 1000000 on table1 server2. if you want to set up the replication, give a check on Show Advanced Options on Create Publication Wizard form.

  • Thanks for the reply. That was a nice suggestion to try. I thought it was not at all possible.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply