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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replication with identity fields

Status
Not open for further replies.

Jabez3rd

Programmer
Feb 6, 2003
9
US
Good day to all.
I will try to state my question as clearly as possible.

Our organization inherited a SQL Server 2000 database that uses identity fields as the primary key for each of the tables.

We have three servers, that, for the purpose of this question I will name A, B, and C. Data from servers B and C is replicated to server A.

When replication is run, and the data is copied from the publisher servers to the subscriber server, the identity field on each of the corresponding tables on the subscriber server will insert it's own identity field with each added record, which most likely will not match that of the publisher table(s). Since, the identity fields are used as the PK, it seems to us that this may cause problems. The obvious solution would be to create a different primary key. However, we would prefer to first attempt a work around.

Any ideas as to a work around will be greatly appreciated.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top