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.
I too have Terry's question, but an alternate tool would be to use SQL Server Profiler to view the activity, if that is more suited to what you are trying to do. Robert Bradley
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.