Back
Database Management

Reliable database management for modern, high-performance systems.

Back
Data Modernisation

Reliable database management for modern, high-performance systems.

Back
Data Engineering

Reliable database management for modern, high-performance systems.

Back
Analytics & Intelligence

Reliable database management for modern, high-performance systems.

Back
Data Strategy Consulting

Reliable database management for modern, high-performance systems.

Configure PEER-TO-PEER Replication

Vishnu Priya
Published on
October 6, 2026

Introduction

Peer-to-peer replication keeps several SQL Server instances in sync. Each peer takes reads and writes, and a change made on one shows up on the others.

Prerequisites

Before you start, make sure you've got:

  • SQL Server Enterprise or Developer Edition on all three instances.
  • SQL Server Agent up and running on each.
  • The AdventureWorks2019 database restored from the same backup on all three instances.
  • Distribution already set up on all three.
  • A Windows account and password for the replication agents, with enough permissions.

Server Details

  • Initial Publisher: GEOLAPTOP-50\PUBLICATION
  • Peer Server 1: GEOLAPTOP-50
  • Peer Server 2: GEOLAPTOP-50\PRIYA

Step 1: Configure Distribution

  1. Open SQL Server Management Studio (SSMS) and connect to the first server.
  1. Expand Replication, right-click it, then pick Configure Distribution.

‍

  1. Click through the wizard and leave the defaults as they are.
  1. Do the same on the other two.

Afterwards, expand Databases > System Databases and check that the distribution database is there on every instance.

Note: We restored the same AdventureWorks2019 backup on all three peers by hand. You could also initialize the peers from a replication snapshot.
‍

Step 2: Create the Publication

Do this on the server that will be the initial publisher.

1.In SSMS, connect to the Publishing server in SSMS.

2.Expand Replication, right-click Local Publications, then choose New Publication.

3.Pick the AdventureWorks2019 database, then click Next.

4.Choose Peer-to-Peer publication, then click Next.

5.Pick the tables you want to replicate, then click Next.

6.In the Log Reader Agent configuration, click Security Settings.

7.Select Run under the following Windows account, enter the account and password, and choose By impersonating the process account, then click OK and Next.

  1. Keep going through the wizard and finish with Finish.
  1. Call the publication PeertoPeer.

    You'll now find the publication under Replication > Local Publications:

Step 3: Configure the Peer-to-Peer Topology

Now bring in the other instances as peer nodes.

  1. Under Local Publications, right-click the PeertoPeer publication and choose Configure Peer-To-Peer Topology.
  1. Click Next on the welcome screen.
  2.  Pick the publisher and the PeertoPeer publication, then click Next.

     
4.On the Configure Topology page, right-click any empty space and choose Add a New Peer Node.

5.Connect to the second instance, pick the AdventureWorks2019 database, and give it a unique Peer Originator ID (we used 105).

6.‍Choose Connect to ALL displayed nodes, then pick Use Push subscription, and click OK.

 7.Do it again for the third instance, GEOLAPTOP-50\PRIYA, with a different Peer Originator ID.    

 8.Make sure all three nodes show up and are connected.

 9.Click Next to get to Log Reader Agent Security.

10.Enter the Windows account and password for each agent, and select By impersonating the process account where applicable.

 11. Review the agent list. It should contain an agent for each peer.

 12. Click Next. If the Distribution Agent Security page appears, enter the required account details and continue.

Ensure that the Windows account has the permissions required to access the relevant SQL Server instances and replication resources.

  13. On the New Peer Initialization page, select:

 14.Click Next and review the remaining configuration pages.

 15. Click Finish to apply the topology configuration.

Wait for the wizard to complete. In this setup, all eight actions displayed Success. Click Close after confirming the successful results.

After the wizard completes, refresh Replication > Local Publications.

All three instances should now be listed, each connected to the others.

Conclusion

That's the whole setup. We got peer-to-peer replication working for AdventureWorks2019 across three SQL Server instances, from distribution through to checking the topology.

Frequently Asked Questions (FAQ)

1. What is peer-to-peer replication in SQL Server?

It builds on transactional replication, so a group of SQL Server instances can pass changes back and forth. Any peer can read and write.

2. Why configure Distribution on each server?

Each instance acts as its own Distributor. It keeps the replication metadata and backs the agents that move transactions around.

3. Why restore the same backup on all peers?

Every peer has to begin with identical data. That's why we restored the same AdventureWorks2019 backup on all three servers first.

4. What is a Peer Originator ID?

It's a unique ID for each peer. SQL Server uses it to tell where a replicated transaction started.

5. What if the same data is changed on two peers?

If two peers change the same row on their own, you get a conflict, and SQL Server won't sort it out for you. Easiest fix: don't update the same data on more than one peer.

‍

Vishnu Priya

Vishnu Priya J V specializes in database administration, with a focus on maintaining reliable, secure, and high-performing database environments. Her work involves supporting database operations, monitoring performance, and ensuring efficient and stable data management for enterprise applications.

Our Latest Blogs

From monitoring to modernization, GeoPITS provides expert database management services that enhance performance, strengthen security, and reduce operational costs.

Ready to Transform Your Data?

Geopits works alongside your team as a strategic partner, starting with stabilizing your current databases, then modernizing your data infrastructure, and ultimately helping you unlock the full potential of AI.

170

Happy Clients so far

2100+

Databases Managed

142+

Successful Migrations

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.