1
0
mirror of https://github.com/alex-bochkov/ssms-addin.git synced 2025-11-23 22:04:53 +02:00
Files
ssms-addin/QueryTemplates/sysprocesses.sql

5 lines
163 B
MySQL
Raw Normal View History

2017-09-11 07:52:50 -07:00
select hostname, db_name(dbid) as DatabaseName, loginame, count(*) as ConnectionCount
from sys.sysprocesses
group by hostname, db_name(dbid), loginame
order by 2