Solved

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

Posted on 2011-03-25
2
408 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

932 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now