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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

active user sessions 1

Status
Not open for further replies.

kindus

IS-IT--Management
Jul 25, 2001
77
US
How do I find the active user sessions in my sqlserver database?

thanks
 
thanks, it gives all processes in the database along with login name. Is there any other way in which I can get only one entry for each session ?
 

sp_who returns one row per SQL connection. Each connection has a server process ID or SPID which is listed in the sp_who output.

What do you mean by "one entry per session?" Terry L. Broadbent
faq183-874 contains some tips and ideas for posting questions in these forums. Please review it and comment if you have time.
NOTE: Reference to the FAQ is part of my signature and is not directed at any individual.
 
Thanks guys, when I say "one entry per session" I mnt the per server connection. When I tried sp_who, I saw two entry for one user say 'user1' while I saw only one server connection made for user1. May be it was something like connection window closed without disconnecting the user or whatever.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top