Hello,
I have a requirement of testing currently logged in users to my server. When I searching on internet I got,
Text
exec sp_who
which works fine. But it is giving more than required details. My requirement is to status, host name and db name. How to filter it to get one row per one host ?
Or Is there any other alternatives to my requirement ?