Re: Logging connected users, how?

From: Narayana Vyas Kondreddi (answer_me_at_hotmail.com)
Date: 07/19/04


Date: Tue, 20 Jul 2004 00:56:29 +0100

You could use Profiler for this. Look at the 'Audit login' eventclass of the
'Security Audit' section.

-- 
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
Is .NET important for a database professional?
http://vyaskn.tripod.com/poll.htm
"faustino Dina" <ffdina@matusa.com.mx> wrote in message
news:OTnBNMebEHA.3016@tk2msftngp13.phx.gbl...
Hi,
I need to log the hostname of the clients that connects to a sql server
database during a period of time. How to do that? If I run sp_who I obtain a
flash of what is hapenning in one instant. I can do an infinite loop asking
for connected hostnames, but it should be a better solution. Which one?
Thanks in advance
-- 
Faustino Dina
--------------------------------------------------------
If my email address starts with two 'f'
drop the first 'f' when mailing me.


Relevant Pages

  • Re: ADO executing stored procedures for all calls, bad performance
    ... procedures with an audit login and audit logout after each and every one. ... happening, and a lot of people pointing to ADO, but almost all of the ... are using inline queries against tables. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ...
    (microsoft.public.data.oledb)
  • Re: Problems launching DTS package from Stored Procedure
    ... >Audit Login ... >Here is an example of an UNSUCCESSFUL sql profiler log: ... >> I cannot run enterprise manager on our server because it is not installed. ... global community for SQL Server professionals ...
    (microsoft.public.sqlserver.dts)
  • Re: users
    ... SQL Server does not keep this information by default. ... this data going forward is to create a trace for the 'Audit Login' event ... "Omran Abdurrahman" wrote in message ... > Can you run a query to identify any database users who haven't logged into> the database for the last six months. ...
    (microsoft.public.sqlserver.security)