Solved

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

Posted on 2007-04-05
4
1,377 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
Comment Utility
No there is not a way to do this.
0
 

Author Comment

by:prgMan
Comment Utility
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
Comment Utility
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
Comment Utility
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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

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 In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
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…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

762 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

10 Experts available now in Live!

Get 1:1 Help Now