Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We use transactional replication to replicate data from table1 on server1 to table2 on server2. However, one of my colleagues accidentally inserted some data into table2. In order to keep the two tables synced up, should we delete the rows inserted? If so, do we need to reset identity?

share|improve this question

Delete the rows to not cause any conflicts later. If you still need the data insert them on the publisher after you deleted them on the subscriber.

You do not need to worry about the identity seed. Replication inserts its own values and does not rely on the identity-auto-value-generation. As this is a table on the subscriber you should not insert data ever again, so to you it should not matter what the identity seed is either.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.