Method of finding currently logged on users in database
In database,what is the method of finding how many users are currently logged into the system and what are their IP addresses.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Pravin MoreRank #1,419 · 1.2K reputationPosted Nov 28, 2011, 7:35 PM EST
Hi stephen, use below query...
SELECT HOST_NAME() AS HostName, SUSER_NAME() LoggedInUser
Thanks,
Pravin