Hi,
I want to find out how many users are currently logged into database, How can I do that?
No. of users logged into Database
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
SenthilkumarRank #387 · 6.5K reputationPosted Feb 23, 2012, 9:31 PM EST
You can use the following to get the currently logged in users in database.
select count(*) from master..sysprocesses where spid > 50
SELECT SYSTEM_USER - This will give you the currently logged in user in sql query window.