600字范文,内容丰富有趣,生活中的好帮手!
600字范文 > SQL Server Could not obtain exclusive lock on database 'model'

SQL Server Could not obtain exclusive lock on database 'model'

时间:2019-10-16 22:48:45

相关推荐

SQL Server Could not obtain exclusive lock on database 'model'

创建SQL Server 数据库时出现错误“Couldnotobtainexclusivelockondatabase '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'

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。