Results 1 to 12 of 12

Thread: User Monitor

  1. #1
    Join Date
    Feb 2004
    Location
    Alpine Califormia
    Posts
    1,789

    Unanswered: User Monitor

    Hi all I'm trying to find a way to see when users log on and what database they are using. would notification services work??

  2. #2
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    depending on how you got things set up security wise, open the management studio and execute...

    sp_who2
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  3. #3
    Join Date
    Feb 2004
    Location
    Alpine Califormia
    Posts
    1,789
    whatt if I wanted history, like who logged into what database yesterday??

  4. #4
    Join Date
    Feb 2004
    Location
    Alpine Califormia
    Posts
    1,789
    USE master;
    GO
    EXEC sp_who 'janetl';
    GO

    I think I got it

  5. #5
    Join Date
    Feb 2004
    Location
    Alpine Califormia
    Posts
    1,789
    thank you Thrasy I looked on BOL got it now
    thank you

  6. #6
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    anytime...
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  7. #7
    Join Date
    Jul 2003
    Location
    San Antonio, TX
    Posts
    3,662
    you can also use logon triggers for that.
    "The data in a record depends on the Key to the record, the Whole Key, and
    nothing but the Key, so help me Codd."

  8. #8
    Join Date
    Feb 2003
    Location
    India
    Posts
    216
    Quote Originally Posted by desireemm
    whatt if I wanted history, like who logged into what database yesterday??
    but u do not get this using
    Code:
    EXEC sp_who 'janetl';

  9. #9
    Join Date
    Jul 2003
    Location
    San Antonio, TX
    Posts
    3,662
    ms-help://MS.VSCC.v90/MS.VSIPCC.v90/MS.SQLSVR.v10.en/s10de_4deptrbl/html/2f0ebb2f-de10-482d-9806-1a5de5b312b8.htm
    "The data in a record depends on the Key to the record, the Whole Key, and
    nothing but the Key, so help me Codd."

  10. #10
    Join Date
    Feb 2003
    Location
    India
    Posts
    216
    cant open that link in my SQL2005 or VS2008 help....

    sp_who, as per BOL
    Provides information about current users and processes in an instance of the Microsoft SQL Server Database Engine. ...
    and nothing to do with historical logins

  11. #11
    Join Date
    Jul 2003
    Location
    San Antonio, TX
    Posts
    3,662
    ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/udb9/html/2f0ebb2f-de10-482d-9806-1a5de5b312b8.htm
    "The data in a record depends on the Key to the record, the Whole Key, and
    nothing but the Key, so help me Codd."

  12. #12
    Join Date
    Feb 2003
    Location
    India
    Posts
    216
    ms-dont-help://MS.NOTHING.v000/MS.Blah-Blah.v-1.xx/html/abcdefghijklmnopqrstuvwxyz.htm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •