• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 416
  • Last Modified:

How to find out when was the last time a database table was accessed by a user

I'm trying to find out when was the last time that a specific database and its tables was accessed by a user.  Details as following:
There are about 30 databases on SQL 2000 server, and I'd like to get rid off some before upgrading to SQL 2005.  I want find out which database(s) has not been used for more than 12-month.  In addition, is it possible that I can narrow it down to table/stored procedure level, i.e. which table or stored procedure has not been used for past 12-month.
0
suebarner
Asked:
suebarner
1 Solution
 
bitrefCommented:
You must first start a trace for the required database objects. Otherwise, it is impossible to get an answer.
0
 
SharathData EngineerCommented:
You can check this URL : http://www.sqlservercentral.com/scripts/Administration/69438/
http://www.eggheadcafe.com/software/aspnet/31209031/sql-server-2000-index-usage.aspx
But the problem is you are currently on SQL Server 2000 and sys.dm_db_index_usage_stats is not available on 2000.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now