Retrieving date/time from Sql Server system tables 
Author Message
 Retrieving date/time from Sql Server system tables

I am interested in logging user activity, such as login date/time, and
logout date/time.  I know how to access the users in the SysUsers
table, but there are no date/time fields in that table.  How would I
go about keeping track of login activity via the system tables
(programatically that is)?  Thanx....


Wed, 14 Jul 2004 05:53:56 GMT  
 Retrieving date/time from Sql Server system tables
A login generates an "audit login" SQL Server event.  You can use SQL
Profiler to log audit login and logout events to a file.

Kindest regards,

Simon Taylor


Quote:
> I am interested in logging user activity, such as login date/time, and
> logout date/time.  I know how to access the users in the SysUsers
> table, but there are no date/time fields in that table.  How would I
> go about keeping track of login activity via the system tables
> (programatically that is)?  Thanx....



Wed, 14 Jul 2004 08:08:02 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Problem Using Time Part of a Date-Time field in SQL-Server

2. Matching system date/time with field date/time

3. Retrieving server date/time

4. Retrieving Server Date and time

5. Retrieving server date/time

6. System time and date from a server

7. Q: Getting The Date/Time Of The Last Mod Of A Sql svr Table

8. SQL Server date/times don't fully show in Access

9. Run time error 3622: OpenRecordSet: SQL server table: IDENTITY column

10. how to set a date time value different from system time in the status bar

11. Using NT Server System Date instead of Workstations Date

12. Set System Time to Server Time

 

 
Powered by phpBB® Forum Software