From Warm-Standby to normal Read-Only mode
use master go -- take the user database in single_user mode first alter database [db_name] set single_user with rollback immediate ; --Check and Kill user sessions connected to that database --Restoring the database restore database [db_name] with recovery ; It may fail if no .tuf is there for this database. restore database [db_name] with recovery, continue_with_error ; Please do a DBCC CHECKDB after this and see any error is seen. Think twice before put it in Production DB. --Reverting back to MULTI USER mode alter database [db_name] set multi_user with rollback immediate ; --making the db READ ONLY alter database [db_name] set read_only with no_wait ; T UF file stands for Transaction Undo File in SQL Server In log shipping scenario if we choose “Standby” option for the secondary server then the transaction log backup file would be restored in standby mode. As discussed ...