SQL Server,Could not obtain exclusive lock on database 'model'
生活随笔
收集整理的這篇文章主要介紹了
SQL Server,Could not obtain exclusive lock on database 'model'
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
創建SQL Server 數據庫時出現錯誤“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.
?
執行以下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'的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 高小明的云平台搭建系列之一——物理机装
- 下一篇: 利用蒙特卡算法仿真二进制双极性基带通信系