Comments
3 comments
-
Run the following:
RESTORE DATABASE <database name> WITH RECOVERY -
petey wrote:Run the following:
RESTORE DATABASE <database name> WITH RECOVERY
Thanks for the reply.
Will this statement restore the entire database again, or will it just switch the mode from standby to live? -
The command Peter provided will change the database from the "loading" state to the "live" state without any subsequent restores - the database will be made available (and start processing requests) in the state the log shipping wizard left it.
Jason
Add comment
Please sign in to leave a comment.
How do I change the status of the destination database from loading to being on-line and accessible? I understand that I can apply the last known good backup and change the option during a restore to “leave database operationalâ€. However, if this were a real-world scenario and the primary server suffered a major hardware failure, the last transaction log backup may have already been shipped to the backup server and would have been applied with the “non-operational†option. In this case, with no more transaction log backups to apply, how do I make the database on the secondary server accessible?