1. 死锁相关 12345678910--查询死锁SELECT request_session_id spid,OBJECT_NAME(resource_associated_entity_id)tableNameFROM sys.dm_tran_locksWHERE resource_type='OBJECT '--杀死死锁KILL 155--显示死锁相关信息exec sp_who2 137 2.并发线程 12--查询正在使用的并发线程数select * from sysprocesses where dbid= db_id('数据库名') ← Previous Post Next Post → Copyright 2021 sunfy.top ALL Rights Reserved ... ... 00:00 00:00 FEATURED TAGS sqlServer FRIENDS sunfy's Blog sunfy's Web sunfy Github Other
Copyright 2021 sunfy.top ALL Rights Reserved