Solved

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

Posted on 2011-03-25
2
410 Views
Last Modified: 2012-08-13
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
Comment
Question by:suebarner
2 Comments
 
LVL 5

Expert Comment

by:bitref
ID: 35219284
You must first start a trace for the required database objects. Otherwise, it is impossible to get an answer.
0
 
LVL 40

Accepted Solution

by:
Sharath earned 500 total points
ID: 35219866
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Query 2 63
Two tables - Sum of values - What is the difference 31 54
Updating statistics with error notification email in SQL server 4 109
SQL query with cast 38 53
There are some very powerful Data Management Views (DMV's) introduced with SQL 2005. The two in particular that we are going to discuss are sys.dm_db_index_usage_stats and sys.dm_db_index_operational_stats.   Recently, I was involved in a discu…
Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question