Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOw to check number of users connected

Status
Not open for further replies.

moolie

Programmer
May 7, 2002
193
CA
How to check the number of users connected to a particular database.
 
Or in enterprise manager under management, select current activity to see who is currently logged into what db and order by database name to group it.

Transcend
[gorgeous]
 
I was aware of TRANSCEND's suggestion about checking the current activity log. In this case the sp_who was a better fit. I needed to be able to check the number of users logged on from within the desktop application I am developing. I queried the db using sp_who and then created a temp table based on that information. Then I can filter the information to get a number of users logged into a specific DB on the server.

Worked very well. Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top