我有一个数据库已经在恢复模式下停留了几天。关于这个有多个线程,但那里的解决方案对我不起作用。
这是我已经尝试过的:
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 …