Book description
Leverage powerful features of the SQL Server and watch your infrastructure transform into a high-performing, reliable network of systems.
Key Features
- Explore more than 20 real-world use cases to understand SQL Server features
- Get to grips with the SQL Server Always On technology
- Learn how to choose HA and DR topologies for your system
Book Description
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.
What you will learn
- Configure and troubleshoot Replication, AlwaysOn, and Log Shipping
- Study the best practices to implement HA and DR solutions
- Design HA and DR topologies for the SQL Server and study how to choose a topology for your environment
- Use T-SQL to configure replication, AlwaysOn, and log shipping
- Migrate from On-Premise SQL Server to Azure SQL Database
- Manage and maintain AlwaysOn availability groups for extended database mirroring
Who this book is for
Professional SQL Server High Availability and Disaster Recovery is for you if you are a database administrator or database developer who wants to improve the performance of your production environment. Prior experience of working with SQL Server will help you get the most out of this book.
Table of contents
- Preface
- Lesson 1
-
Getting Started with SQL Server HA and DR
- Introduction
- What is High Availability and Disaster Recovery?
- HA and DR Terminologies
- SQL Server HA and DR Solutions
- Introduction to SQL Server Replication
- Types of Replication
-
Configuring Snapshot Replication Using SQL Server Management Studio
- Exercise 1: Creating a Publication
- Exercise 2: Exploring the Distribution Database
- Database Snapshot
- Snapshot Agent Job
- Replication Snapshot (snapshot.exe)
- Modifying an Existing Publication
- Exercise 3: Creating a Subscription
- Exercise 4: Exploring the Distribution Database (Metadata)
- Distribution Agent Job
- Exercise 5: Running the Job
- Exercise 6: Distribution Agent Process (distrib.exe)
- Optimizing Snapshot Replication
- Summary
- Lesson 2
-
Transactional Replication
- Introduction
- Understanding Transactional Replication
- Configuring Transactional Replication
- Azure SQL Database as a Subscriber in Transaction Replication
- Understanding Peer-To-Peer Transactional Replication
-
Configuring Peer-To-Peer Transactional Replication
- Exercise 12: Creating the Publication, Adding Articles, Adding the Subscription, and Pushing the Subscription Agent to the Publication on Server 1
- Exercise 13: Taking the Backup of the Publication Database on Server 1
- Exercise 14: Restoring the Database on the Subscriber Server
- Exercise 15: Creating the Publication, Adding Articles, Adding the Subscription, and Pushing the Subscription Agent to the Publication on Server 2
- Exercise 16: Verifying the Replication
- Modifying an Existing Publication
- Summary
- Lesson 3
-
Monitoring Transactional Replication
- Introduction
- The Replication Monitor
-
Real-World Transactional Replication Problems and Solutions
- Configuration Issues
- Exercise 21: Problem 1 – Unable to Connect to Distributor
- Exercise 22: Problem 2 – Inactive Subscriptions
- Exercise 23: Problem 3 - Missing Replication Stored Procedures
- Data Issues
- Exercise 24: Problem 4 – Row Not Found at the Subscriber
- Performance Issues
- Exercise 25: Problem 5 – Log Reader Agent Takes Time to Scan the Transaction Log
- Conflicts in Peer-to-Peer Transactional Replication
- Summary
- Lesson 4
-
AlwaysOn Availability Groups
- Introduction
- AlwaysOn Availability Group Concepts and Terminology
- AlwaysOn Availability Groups
- Creating Hyper-V VMs
- Active Directory Domain Controller
- Installing the SQL Server Developer Edition
- Windows Server Failover Cluster
- Configuring AlwaysOn Availability Groups
- AlwaysOn Availability Groups on Microsoft Azure
- Summary
- Lesson 5
-
Managing AlwaysOn Availability Groups
- Introduction
- AlwaysOn AG Failover
-
Managing AlwaysOn Availability Groups
- Removing a Database from an Existing Availability Group
- Exercise 44: Removing a Database from the Secondary Replica
- Exercise 45: Removing a Database from the Primary Replica
- Exercise 46: Adding a Database to an Availability Group
- Exercise 47: Removing a Replica from an Availability Group
- Exercise 48: Adding a Replica to an Availability Group
- Exercise 49: Changing the Availability Mode of a Replica
- Exercise 50: Changing the Failover Mode of a Replica
- Exercise 51: Creating Multiple Listeners for the Same Availability Group
- Exercise 52: Configuring Backups on the Secondary Replica
- Exercise 53: Configuring Readable Secondaries
- Exercise 54: Read-Only Routing
- Exercise 55: Configuring the Flexible Failover Policy
- Availability Database Synchronization States
- Monitoring AlwaysOn Availability Groups
- Troubleshooting AlwaysOn Availability Groups
- Summary
- Lesson 6
-
Configuring and Managing Log Shipping
- Introduction
- Configuring Log Shipping
-
Managing and Monitoring Log Shipping
- Exercise 62: Adding a New Secondary Instance to an Existing Log Shipping Configuration
- Exercise 63: Removing a Secondary Instance from an Existing Log Shipping Configuration
- Exercise 64: Adding a Database to a Log Shipping Configuration
- Exercise 65: Removing a Log Shipped Database
- Monitoring Log Shipping
- Exercise 66: Configuring Email Alerts for the Log Shipping SQL Agent Jobs
- Exercise 67: Using T-SQL to Set Up Custom Monitoring
- Exercise 68: Changing the Database State at the Secondary
- Exercise 69: Performing a Failover from the Primary Instance to the Secondary Instance
- Troubleshooting Common Log Shipping Issues
- Comparing AlwaysOn, Replication, and Log Shipping
- Summary
- Appendix
Product information
- Title: Professional SQL Server High Availability and Disaster Recovery
- Author(s):
- Release date: January 2019
- Publisher(s): Packt Publishing
- ISBN: 9781789802597
You might also like
book
SQL Server 2019 AlwaysOn: Supporting 24x7 Applications with Continuous Uptime
Get a fast start to using AlwaysOn, the SQL Server solution to high-availability and disaster recovery. …
book
Pro SQL Server Administration
This book brings SQL Server administration into the modern era with strong coverage of hybrid cloud …
video
Administering a SQL Database Infrastructure - Exam 70-764 Certification Training
Microsoft's SQL Server platform is one of the top three relational database products in the world's …
book
Professional SQL Server 2012 Internals and Troubleshooting
Hands-on troubleshooting methods on the most recent release of SQL Server The 2012 release of SQL …