Solved

Determine the last time a MS SQL Server 2000 database was accessed or updated

Posted on 2007-04-05
4
1,388 Views
Last Modified: 2012-08-14
Hi experts,
Is it possible to determine the last time a MS SQL Server 2000 database was accessed or updated?

Thanks
0
Comment
Question by:prgMan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 16

Expert Comment

by:rboyd56
ID: 18861045
No there is not a way to do this.
0
 

Author Comment

by:prgMan
ID: 18863154
None?  I saw an article to use Profiler, something about Blackbox in Profiler.  
              http://www.sqlmag.com/Article/ArticleID/16078/sql_server_16078.html
Unfortunately I do not have access to the article.  It sounded like it could read something.  But I always thought Profiler was more of what's going on NOW kind of tool.

Thanks!
0
 

Author Comment

by:prgMan
ID: 18863462
From: Portable DBA: SQL Server: McGraw-Hill/Osborne © 2004
SQL Profiler also works in conjunction with SQL Server’s tracing ability. Using the sp_trace_create system stored procedure, you can enable tracing of specific events on the server and then use SQL Profiler to review those events or replay some or all of them on a different database. Furthermore, in SQL Server 2000 you can use the TRACE_PRODUCE_BLACKBOX option of the sp_trace_create stored procedure to create a 5MB trace of the last set of events on the SQL Server.

So is there some value stored in a system table that says when it was last accessed?
0
 
LVL 16

Accepted Solution

by:
rboyd56 earned 125 total points
ID: 18863530
No there is not a value stored in the database that indicates this. You can use Profiler to tack the events as they occur but SQL Server does not store the time the database was last accessed. The BLACKBOX trace is just a trace of the last 5MB of commands.

Even if the last time a database was access was stored in the database, you would have to access the database to get that information, which would invalidate the date you are looking for.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how the fundamental information of how to create a table.

696 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