Solved

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

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I am showing a way to read/import the excel data in table using SQL server 2005... Suppose there is an Excel file "Book1" at location "C:\temp" with column "First Name" and "Last Name". Now to import this Excel data into the table, we will use…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

706 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

17 Experts available now in Live!

Get 1:1 Help Now