Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Professional SQL Server High Availability and Disaster Recovery

You're reading from   Professional SQL Server High Availability and Disaster Recovery Implement tried-and-true high availability and disaster recovery solutions with SQL Server

Arrow left icon
Product type Paperback
Published in Jan 2019
Publisher Packt
ISBN-13 9781789802597
Length 564 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Ahmad Osama Ahmad Osama
Author Profile Icon Ahmad Osama
Ahmad Osama
Arrow right icon
View More author details
Toc

Table of Contents (9) Chapters Close

Professional SQL Server High Availability and Disaster Recovery
Preface
1. Getting Started with SQL Server HA and DR 2. Transactional Replication FREE CHAPTER 3. Monitoring Transactional Replication 4. AlwaysOn Availability Groups 5. Managing AlwaysOn Availability Groups 6. Configuring and Managing Log Shipping Appendix

Lesson 1: Getting Started with SQL Server HA and DR


Activity 1: Troubleshooting Snapshot Replication

Solution:

To modify the publication, follow these steps:

  1. Connect to the Publisher instance and expand Replication | Local Publication. Select the WWI-Snapshot publication and select Properties:

    Figure 1.84: The Properties option

  2. In the Publisher Properties window, select the pre-snapshot and post-snapshot scripts, as shown in the following screenshot:

    Figure 1.85: The pre-snapshot and post-snapshot scripts

    Click OK to continue and save the new settings. You will be asked to generate a new snapshot after saving the modifications:

    Figure 1.86: Generating a new snapshot

  3. Leave the checkbox checked and click on Yes.

    A new snapshot will be generated. You can verify this by either checking the snapshot folder or viewing the snapshot agent history.

  4. Now, apply the new snapshot and see if this fixes the issue. You can apply the snapshot (run the distribution agent) by using any one of the methods that we have discussed earlier.

    Once the distribution agent runs successfully, observe the agent history output:

    Figure 1.87: The agent history output

    The distribution agent now runs the pre-snapshot script to drop the view. It then applies the snapshot and executes the post-snapshot script to create the view.

This completes the activity.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime