[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Ready to get certified? Check out some courses that help you prepare for third-party exams.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how the fundamental information of how to create a table.

656 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