| Business Application Development with: SQL Server, C#, VB, VB.Net, ASP, ASP.Net, and XML |
| N | S |
Novick Software Management • Design • Programming • Training • Consulting |
|
|
News Links Schedule Site Map Contact |
|
Tips and Tricks for: SQL Server
The Problem: A Restore can leave the database in "LOADING" stateWhen restoring a database you get three options for the final state of the database.
So what if you've chosen the second option and you want to use the database and not restore additional logs? Solution: RESTORE DATABASE mydbname WITH RECOVERYThe solution line is the answer. Just substitute your database name and the state of the database is changed an you can now go in and use it. I had to use this when a client tried to do a restore to a point-in-time but selected transaction logs beyond that point in time. He hit some type of problem which left the database in the nonoperation (loading) state even though that wasn't what he had intended. The RESTORE DATABASE WITH RECOVERY command was all that was needed to get the DB in to a usable state.
|
|
|
Copyright © 2003-2008 Novick Software, Inc. | Terms of Use | Privacy Policy | Nice Things People Say| |