Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

When did a user last access Database?

Status
Not open for further replies.

arst06d

Programmer
Joined
Nov 29, 2002
Messages
324
Hi

I have a couple of databases on SQL2000 which I don't think anybody accesses.

I know you can see current database acivity in EM, but will there be a log somewhere of which users accessed the database and when? Is there some sort of logging which I can switch on for this?

The access will be by way of linked tables in an Access database.

I know I could just rescind permissions and wait for people to squeal, but I think that would be frowned upon!

Thanks

David
 
I'm assuming I cannot find anything historical, so I've started a trace on these databases.
 


You can do this by changing the audit level to 'all', audit level option can be found in the security tab of server properties.
 

If you use ODBC connection in access database, you can also use ODBC trace to log all the connections to ODBC trace log. To do that, goto ODBC manager and turn on ODBC trace.
 
One sure-fire way would be to take the database oof-line. R-click database name --> All tasks -->Take offline.
Wait for someone to call.

I use this technique sometimes, but mine is a small company.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top