sp_who

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yacov klein
    New Member
    • Jan 2012
    • 1

    sp_who

    when i run Sp_Who2 i can see only my self.
    i would like to see all users which are logon to the server.
    How can i to it?
    I use SQL2008
  • PsychoCoder
    Recognized Expert Contributor
    • Jul 2010
    • 465

    #2
    You can try one or two different ways. First is

    Code:
    select hostname, program_name, loginame, cpu, physical_io,
    memusage, login_time, last_batch, status
    from master.dbo.sysprocesses
    where dbid = db_id('YourDBName')
    order by hostname
    Code:
    Or simply using SP_WHO

    Comment

    • shv214
      New Member
      • Apr 2012
      • 3

      #3
      you can try this to get all active users

      EXEC sp_who;

      Comment

      • ck9663
        Recognized Expert Specialist
        • Jun 2007
        • 2878

        #4
        Here, try this...

        Good Luck!!!


        ~~ CK

        Comment

        Working...