tags:

views:

296

answers:

1

I have a SQL Server (2000) with a number of accounts which I think are no longer used. Is there any way I can find out when each account was last used?

Alternatively what is the easiest way to create a table of accounts logging on to the server over a period.

+1  A: 

SQL Server can audit logins. Read more detail here for SQL 2008 and here for SQL 2000

I do not think you can track login usage unless the auditing is turned on.

You can try this to find out when it was last used:

SELECT accdate, name FROM master.dbo.syslogins
Raj More
If you switch on C2 auditing, you fill your hard disk quickly on a busy server with trace files. And where did you get info on accdate from in syslogins?
gbn