小编Eri*_*ker的帖子

SQL Server 镜像数据库卡在恢复模式

我有一个数据库已经在恢复模式下停留了几天。关于这个有多个线程,但那里的解决方案对我不起作用。

这是我已经尝试过的:

RESTORE DATABASE [DBNAME] WITH RECOVERY 
Error: Exclusive access could not be obtained because the database is in use.

ALTER DATABASE [DBNAME] SET OFFLINE WITH ROLLBACK IMMEDIATE
Error: ALTER DATABASE failed because a lock could not be placed on database 'DBNAME'  
I get the same error when trying to set the db to SINGLE_USER

exec sp_who2 --> nothing that contains my database, so nothing that I can kill  
(Or I need to look for something else ??)
Run Code Online (Sandbox Code Playgroud)

我不能只是停止 SQL …

sql-server-2008 sql-server recovery restore

5
推荐指数
2
解决办法
4万
查看次数

标签 统计

recovery ×1

restore ×1

sql-server ×1

sql-server-2008 ×1