?
Solved

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

Posted on 2007-04-05
4
Medium Priority
?
1,391 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 375 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

I have a large data set and a SSIS package. How can I load this file in multi threading?
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Suggested Courses

801 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