SQL Server Synchronize Standby

Follow

The synchronize standby feature (Sync) of the Dbvisit StandbyMP resolves the unrecoverable transaction log gap in standby. This can happen under these circumstances.

  1. Adhoc transaction log backups are taken in the primary, breaking the log chain between the primary and standby.

  2. An ad-hoc full backup was taken with tail log backup that breaks the log chain.

  3. One or more transaction log backup files are lost in standby before getting applied in standby.

The Sync feature, in summary, does the following:

  1. Take a differential backup of the primary database based on the backup taken on primary that was used to create the DR

  2. Transfer the differential backup to standby.

  3. Restore the database backup on standby.

  4. Delete unwanted transaction log backups that are present on standby.

  5. Resume the automated update.

Sync feature can be based only on the backup used to create the standby database. If another non-copy-only backup was taken in the meantime, Sync feature can’t be used and standby database has to be recreated from the scratch

To initiate the Sync process, select “Synnchronize” from the right ACTIONS pane:

image-20250326-171333.png

There are no options available, click start to initiate the process:

image-20250326-171428.png

Once the process starts, you will be able to see the task in the taskbar and also see the details:

image-20250326-171504.pngimage-20250326-171519.png

Once task is finished, log shipping can continue normally.

Below is an example of failed Sync task due to non-copy-only backup being taken on primary:

image-20250326-172123.png
Have more questions? Submit a request

Comments