Solved

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

Posted on 2007-04-05
4
1,379 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
  • 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

914 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

18 Experts available now in Live!

Get 1:1 Help Now