首页 > 数据库技术 > 详细

SQL Server: Database stuck in “Restoring” state

时间:2021-04-28 16:26:34      阅读:22      评论:0      收藏:0      [点我收藏+]

SQL Server: Database stuck in “Restoring” state

You need to use the WITH RECOVERY option, with your database RESTORE command, to bring your database online as part of the restore process.

This is of course only if you do not intend to restore any transaction log backups, i.e. you only wish to restore a database backup and then be able to access the database.

Your command should look like this,

RESTORE DATABASE MyDatabase
   FROM DISK = ‘MyDatabase.bak‘
   WITH REPLACE,RECOVERY

You may have more sucess using the restore database wizard in SQL Server Management Studio. This way you can select the specific file locations, the overwrite option, and the WITH Recovery option.

 

SQL Server: Database stuck in “Restoring” state

原文:https://www.cnblogs.com/chucklu/p/14713762.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!