View Single Post

   
  #1 (permalink)  
Old 02-28-2008, 06:23 PM
kr
 
Posts: n/a
Default finding active users from sysprocesses

I am trying to find a select on sysprocesses that would list all the active
logins. An active login is a login that has a TSQL statment being executed
on the server,

This didnt work to well! Any ideas. Thanks in advance.

select sp.loginame,
-- more columns
from master..sysprocesses sp
where sp.status not in ('sleeping','background' )
order by 1


Reply With Quote