These pages cover SQL Backup Pro 8.0. Help for older versions is also available.
If you need to switch from the source database to a standby database, you must bring the standby database online manually; there is no automatic failover with the log shipping configuration.
The standby database will be non-operational or read-only, depending on the recovery completion state you selected (WITH NORECOVERY or WITH STANDBY). To make the standby database available for reading and writing, the log shipping needs to be broken and the database brought online WITH RECOVERY:
WITH NO_TRUNCATE to the BACKUP LOG command, then run the job again.If there are transaction log backup files remaining in the log shipping shared folder, restore them to the standby database, specifying the option WITH RECOVERY when you restore the final backup. For example:
"RESTORE LOG [standby database] FROM DISK = 'C:\Backups\log_29022013_160012' WITH NORECOVERY" "RESTORE LOG [standby database] FROM DISK = 'C:\Backups\log_29022013_160512' WITH NORECOVERY" "RESTORE LOG [standby database] FROM DISK = 'C:\Backups\log_29022013_161012' WITH RECOVERY"
You can also use the SQL Backup Pro Restore wizard: on step 1, select Browse for backup files to restore and use the File Browser to select the backup files. For more information, see Restoring backups.
If there are no transaction log backup files remaining, recover the standby database using the native SQL Server RESTORE statement, for example:
RESTORE DATABASE [database_name] WITH RECOVERY
If any SQL users were transferred via the transaction log backups, they will either not exist as logins on the standby SQL Server or they will use invalid security identifiers (SIDs) from the source SQL Server's login. To reconcile the SIDs:
Reconcile all database users against the security identifier on the standby server using this query:
USE [MyDatabase] exec sp_change_users_login 'Update_One', 'MyDBUser', 'MyDBLogin'
where Update_One links the specified user (MyDBUser) in the database (MyDatabase) to the existing SQL Server login (MyDBLogin). The user and the login are usually the same. For more information about sp_change_users_login, refer to you SQL Server documentation
To re-establish log shipping, restore the standby database from a new full backup of the source database using WITH NORECOVERY or WITH STANDBY. You can use the Restore wizard to do this.