You've already forked ssms-addin
mirror of
https://github.com/alex-bochkov/ssms-addin.git
synced 2025-11-23 22:04:53 +02:00
5 lines
163 B
MySQL
5 lines
163 B
MySQL
|
|
select hostname, db_name(dbid) as DatabaseName, loginame, count(*) as ConnectionCount
|
||
|
|
from sys.sysprocesses
|
||
|
|
group by hostname, db_name(dbid), loginame
|
||
|
|
order by 2
|