当前位置:Gxlcms > mysql > 找到活动的SQL连接,并杀掉它!

找到活动的SQL连接,并杀掉它!

时间:2021-07-01 10:21:17 帮助过:23人阅读

select
    db_name(dbid) as [Database Name], 
    count(dbid) as [No Of Connections],
    loginame as [Login Name]
from
    sys.sysprocesses
where
    dbid > 0
group by
    dbid, loginame

人气教程排行