Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

How to find whether a db is accessed

$
0
0

Hello

I want to know whether a db is getting accessed at all. As the server is a shared server and has lots of db's hosted its not really a good idea to run profiler trace.

My second option was to run sys.dm_db_index_usage_stats which kind of helps me. But for all the databases that I am checking I see that they are used by objectid's 5,27,29,34,46 etc etc. All these objectids are system objects like sysrowsets, sysowners etc.

At this point can I confirm that if all it shows is system objects then my database is not being used by the application? This server is not restarted in months so the data should not be cleared. This is SQL 2005 SP2.

Is there a diffferent option to know when a database is last used?


Regards, Ashwin Menon My Blog - http:\\sqllearnings.com


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>