Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Two-way SQL Server 7 Replication

Status
Not open for further replies.

Silhouette

IS-IT--Management
Joined
Nov 13, 2001
Messages
1
Location
PH
We are planning to use the replication feature of SQL Server 7 to replicate database records from one site to another. The tables that will be replicated contain primary keys that are auto-generated (digits only). Each site allows users to insert, update, and delete records. Records from one site need to be replicated on the other site and vice-versa.

How can we successfully replicate the contents of these tables w/o violating the unique key constraint? We were thinking of putting a prefix in generating the primary keys but this will require us to make major alterations on our existing production databases. Are there other ways?
 
how about adding a new column to the primary key with a different default value on either server ...

have to try it .. it may work ..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top