Logged Users

  • Many times i need to see which users are currently logged to my server. Is there a easy way i could track this information quicky.

    Thanks in advance.

  • You can use sp_who stored procedure to return the details required.

    Thanks

     


    Lucky

  • But that lists out everything including sleeped users. I am more interested to know what are the users that are currently actively connected to my server.

  • You can select whatever need from sp_who2 and filter the sleeping in where cluase. Create another SP

    Nita

  • I use Management-> Current Activity window Processes view in 2000 and Management -> Activity Monitor in 2005 to find out who is connected and sort by Last Batch field.

    Regards,Yelena Varsha

  • sp_who2 active will list only the active users. you can use this.

    Cheers,
    Sugeshkumar Rajendran
    SQL Server MVP
    http://sugeshkr.blogspot.com

  • sp_who active works as well

    RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."

  • I prefer to write my own queries off of sysprocesses.  If you have lots of users, applications, or databases, filtering things out in a where clause is the way to go.

    Regards,
    Rubes

Viewing 8 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic. Login to reply