Home > Storage > Data Storage Essentials > AppSync > Dell AppSync Integration with Microsoft SQL Server > Details of restoring to a secondary replica
The following explains the steps that AppSync performs when restoring a secondary replica and the steps that must be performed after the restore is complete. Restoring a secondary replica is useful if the replica is too far behind in synchronization with the primary.
If the replica being restored is currently a secondary replica, and the Failover the Availability Group if the current role is Secondary option is selected, see the Details of Restoring to a Primary Replica section.
When restoring to a secondary replica, AppSync:
After AppSync restores the database, perform the following steps manually:
ALTER DATABASE [AAGName] SET HADR AVAILABILITY GROUP = [DBName];