Interview Questions

1. Why is primary key needed in Transactional replication?

The reason is in the subscriber, rows are updated/deleted one-by-one using primary key. 

For example:

If you delete 100 rows in the publisher using a single DELETE statement, in the subscriber 100 DELETE statements would be executed.

— on publisher

DELETE FROM dbo.tbAddress WHERE City = ‘LONDON’

— on subscriber

DELETE FROM dbo.tbAddress WHERE pk = @pk

By Hena Parveen 2 0
Is this helpful? Yes No

Submit an interview question

Submitted questions and answers are subject to review and editing, and may or may not be selected for posting, at the sole discretion of w3Sniff.

Get Started

Comments

Leave a Comment


Check out more interview questions

Based on your skills

MS SQL Server

1658775 1720 23 859

Angular

42394 92 0 46

Wordpress

34278 72 1 36