Overview

In previous parts We saw what SQL Server Replication is. In this part, we will be looking on the types of replication, architecture and how they works.

Types of SQL Server Replication:

Let’s see each type by an example so we will get a clear gist what each and every replication is doing, starting with Snapshot Replication.

1. Snapshot Replication

Architecture



How It Works?

Let’s Start:

Logically it is advisable to take three instances. Here I am explaining snapshot replication local server (SQL).

Note: To Configure and to check on your local PC you need to install SQL Server (2008, 2008R2, 2012, 2014 and so on). Express Edition will have less features in local PC.

Creating Subscription


Click Next.



Click Next ->.



Select subscriber database will be selection simple blog database->Next.



Configure Security setting for subscriber.



Click Ok ->Next.



Now,it’s asking agent to run continuously, run on demand or schedule it. This depends on your business requirements, how you want your data. Here am continuing with default selection running continuously. ->click Next ->Run immediately ->Create the subscription -> Finish





See the Local Subscriber Simple Blog Subscriber appeared.



Job created in SQL server Jobs ->Right Click ->Start Job as Step.



After Successful completion of job you will able to see tables of Blood bank management database which we selected appear in Simple blog



Conclusion

Snapshot Replication is suitable for small databases where replication is needed. For huge databases(TB) on server make sure you have plenty of resources available for replication (Snapshot) running efficiently.

Refer: Replication In SQL Server: Part One.