Book Image

Professional SQL Server High Availability and Disaster Recovery

By : Ahmad Osama
Book Image

Professional SQL Server High Availability and Disaster Recovery

By: Ahmad Osama

Overview of this book

Professional SQL Server High Availability and Disaster Recovery explains the high availability and disaster recovery technologies available in SQL Server: Replication, AlwaysOn, and Log Shipping. You’ll learn what they are, how to monitor them, and how to troubleshoot any related problems. You will be introduced to the availability groups of AlwaysOn and learn how to configure them to extend your database mirroring. Through this book, you will be able to explore the technical implementations of high availability and disaster recovery technologies that you can use when you create a highly available infrastructure, including hybrid topologies. Note that this course does not cover SQL Server Failover Cluster Installation with shared storage. By the end of the book, you’ll be equipped with all that you need to know to develop robust and high performance infrastructure.
Table of Contents (9 chapters)
Professional SQL Server High Availability and Disaster Recovery
Preface

Conflicts in Peer-to-Peer Transactional Replication


As discussed in the previous lesson, P2P transactional replication can result in conflicts. Let's take a look at a conflict example in this section.

Exercise 26: Problem 6 – Conflicts in P2P Transactional Replication

You will have to set up P2P replication using the scripts in Lesson 2, Transactional Replication, for this section.

Setup

To introduce the conflict into the replication, follow these steps:

  1. Navigate to C:\Code\Lesson03\Problem06 and open 1_Setup.sql and 2_Setup.sql in SSMS.

  2. Connect the query window for 1_Setup.sql to the publisher and 2_Setup.sql to the subscriber.

  3. Quickly execute the two queries in parallel.

Troubleshooting

Whenever there is a conflict, a message is logged into the SQL Server...