摘要: SqlServer不发现死锁都是会自动解开的,如果没有解开那么一定是还有人在使用,用的人多事务多,锁自然也多 如何察看当前数据库被锁的表 select request_session_id spid,OBJECT_NAME(resource_associated_entity_id)tableName from sys.dm_tran_locks where resource_type = 'OBJECT ' spid 就是锁住表的进程 tableName 就是被锁的表名 解锁 kill [spid] 阅读全文
posted @ 2011-11-22 16:52 云中雀 阅读(798) 评论(0) 推荐(0) 编辑