SQL Server,Could not obtain exclusive lock on database 'model'
創(chuàng)建SQL Server 數(shù)據(jù)庫時出現(xiàn)錯誤“Could not obtain exclusive lock on database 'model'”
嘗試以下方法:
1. to try reconnecting to the database.
2. Restarting the service.
3. killing the spid holding the lock.
?
執(zhí)行以下SQL語句來查詢:
select? d.name, resource_type,resource_database_id,request_mode,request_status,request_owner_type,request_type
from sys.databases d inner join sys.dm_tran_locks l
on d.database_id = l.resource_database_id
and l.resource_database_id = 3
?
?
select spid ,PROGRAM_NAME from master..sysprocesses
where DB_NAME(dbid) = 'model'
總結
以上是生活随笔為你收集整理的SQL Server,Could not obtain exclusive lock on database 'model'的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 高小明的云平台搭建系列之一——物理机装
- 下一篇: 利用蒙特卡算法仿真二进制双极性基带通信系