Advertisement
Beginner SQL Server, Replication

What is SQL Server replication, and what problem does it help solve?

Short answer

Replication is a set of technologies that automatically copies and synchronizes data from one database, called the publisher, to one or more other databases, called subscribers, letting you distribute data to multiple locations for purposes like reporting, offloading read…

Save SQL Server mock interview
Advertisement
AModel answer
Replication is a set of technologies that automatically copies and synchronizes data from one database, called the publisher, to one or more other databases, called subscribers, letting you distribute data to multiple locations for purposes like reporting, offloading read traffic, or keeping remote offices synchronized with a central database.
-- Simplified concept: a publisher sends changes
-- to one or more subscriber databases automatically
EXEC sp_addpublication @publication = 'SalesPublication';
Real-world example
A retail chain uses replication to automatically copy sales data from each store's local database to a central reporting database, giving head office near real time visibility into sales across every location.
Likely follow-ups
  • What are the different types of replication available in SQL Server?
  • Does replication require a constant network connection between servers?
Related topics