Well, if you have already restored all the database, you can execute the following code and it will bring your database from recovery to operational state.
RESTORE DATABASE NameofDatabaseWITH RECOVERY
If due to any reason, above query returns error about restoring log files or any other file and you do not have that file in your hand, you can run following command.
Remember above command will roll forward your database and you will be not able to restore any other database after that.
RESTORE DATABASE NameofDatabaseWITH RECOVERY,REPLACE
https://blog.sqlauthority.com/2014/10/24/sql-server-database-stuck-in-restoring-state/
Comments
Post a Comment