Re: Last login

From: william.huang (william.huang_at_saturn.yzu.edu.tw)
Date: 06/29/05


Date: Wed, 29 Jun 2005 11:26:40 +0800

thanks
the second one did help

"Hari Prasad" <hari_prasad_k@hotmail.com> ¼¶¼g©ó¶l¥ó·s»D:OxxfTt7eFHA.3160@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> SQL Server by default will not store the Last login time in any system
> tables.
>
> But you could go for any of the below 2 approaches to attain this:-
>
> 1. Enable the audit level for successful login and Faile Logins using
> Enterprise manager ... SECURITY tab. This will put all the
> successful and failed logins to sql server in sql server error log. You
> could open the log and identify the last login time.
>
> 2. Write a stored procedure and read the Master..sysprocesses table every
> 1 minute (use SQL Agent jobs) and put it into a user defined table.
> Later you could read this table to identify the last login time..
>
> Thanks
> HARI
> SQL Server MVP
>
>
>
>
> "william.huang" <william.huang@saturn.yzu.edu.tw> wrote in message
> news:OkGa0g6eFHA.3836@tk2msftngp13.phx.gbl...
>> Hello everybody!!
>> Do you know how to find out the last login time for all acccounts ?
>> please, to instruct for me.
>> thank you very much. :lol:
>>
>>
>
>



Relevant Pages

  • Re: Last login
    ... SQL Server by default will not store the Last login time in any system ... Enable the audit level for successful login and Faile Logins using ... successful and failed logins to sql server in sql server error log. ...
    (microsoft.public.sqlserver.security)
  • Re: 100 % CPU Usage
    ... > the sp_who2 command. ... there is a lot of CPU on the Lazy Writer given the login time. ... If this indeed is a bug in SQL Server, ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: How to browse the history login detail of sqlserver?
    ... login. ... Mike Epprecht, Microsoft SQL Server MVP ... client ip and login time ...
    (microsoft.public.sqlserver.security)