Replication: Configuration of Transactional replication

Following are the steps for configuring Transactional Replication on Server:

There are 3 steps involved for Configuring the Transactional Replication:

1.Configuring the Distribution Database.
A database which contains all the Replication commands. Whenever any DML or DDL schema changes are performed on the publisher, the corresponding commands generated by  SQL Server are stored in the Distribution database. This database can reside on the same server as the publisher, but it is always recommended to keep it on a separate server for better performance. Normally, I have observed that if you keep the distributoion database on the same machine as that of the publisher database and if there are many publishers then it always has an impact on the performance of the system. This is because for each publisher, one distrib.exe file gets created. 

2.Creating the publisher.
The Publisher can be referred to as a database on which the DML or DDL schema changes are going to be performed.

3.Creating the subscriber.
The Subscribers the database which is going to receive the DML as well as DDL schema changes which are performed on the publisher. The subscriber database normally resides on a different server in another location.

How it works


Transactional replication is implemented by the Snapshot Agent, Log Reader Agent, and Distribution Agent. The Snapshot Agent prepares snapshot files containing schema and data of published tables and database objects, stores the files in the snapshot folder, and records synchronization jobs in the distribution database on the Distributor.
The Log Reader Agent monitors the transaction log of each database configured for transactional replication and copies the transactions marked for replication from the transaction log into the distribution database. The Distribution Agent moves the initial snapshot jobs and the transactions held in the distribution database tables to Subscribers.

Activity Task:

1. We need instance name to configure replication so connect to publisher and get instance name:

Connect distributor and get instance name

Configure distributor:


Configure Publisher:


Choose database:

Choose Transactional Replication:

Select articles:









Configuring Subscription:


Done

Check the row transfer and match from Publisher rows to Subscribers row:

Check blocking when snapshot capture at publisher:


Monitoring Replication:


Name

Azure Backup Database Clustering Crash Dumps DBCC Deadlock Link Server Log Shipping Maintenance Migration Mirroring Monitoring Performance Tuning Permissions Post Installations Prerequisites Replication Restore Database SQL Installations SQL on Linux SQL Uninstallations SSIS T-SQL Windows Server
false
ltr
item
hybriddba.blogspot.com: Replication: Configuration of Transactional replication
Replication: Configuration of Transactional replication
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTKrV7wVxHAzZlDphfBpQagYqeaHB6L0kMfxG0cAj9m8hEv3QxABHaFHaV82GHnPPBsJxzum9sErNNkmpNt2e838gEtr4GdFx9UZO3fBeCufzCoITCFt0tIhhMUc2Z2sR15pziwb5vVxr7/s1600/1580631855655913-0.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTKrV7wVxHAzZlDphfBpQagYqeaHB6L0kMfxG0cAj9m8hEv3QxABHaFHaV82GHnPPBsJxzum9sErNNkmpNt2e838gEtr4GdFx9UZO3fBeCufzCoITCFt0tIhhMUc2Z2sR15pziwb5vVxr7/s72-c/1580631855655913-0.png
hybriddba.blogspot.com
https://hybriddba.blogspot.com/2019/04/replication-configuration-of.html
https://hybriddba.blogspot.com/
https://hybriddba.blogspot.com/
https://hybriddba.blogspot.com/2019/04/replication-configuration-of.html
true
7679493960263860249
UTF-8
Not found any posts Not found any related posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU Tag ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Contents See also related Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy