/ Published in: SQL
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
SELECT login_name, COUNT(session_id) AS [session_count] FROM sys.dm_exec_sessions GROUP BY login_name ORDER BY COUNT(session_id) DESC;