Solved

Find  which tables are most accessed or frequently used in SQL server

Posted on 2014-02-27
2
1,326 Views
Last Modified: 2014-03-28
How do I find out which tables are most accessed or frequently used in SQL server ?
0
Comment
Question by:Varshini S
2 Comments
 
LVL 39

Accepted Solution

by:
lcohan earned 500 total points
ID: 39892854
Try this:

select * from sys.dm_db_index_operational_stats(db_id(),NULL,NULL,NULL)

More details at:
http://sqlblog.com/blogs/paul_white/archive/2011/02/17/Seeking-Without-Indexes.aspx


Or this:


SELECT DB_NAME() + '.' + object_name(b.object_id), a.user_seeks, a.user_scans, a.user_updates
FROM sys.dm_db_index_usage_stats a
RIGHT OUTER JOIN sys.indexes b on a.object_id = b.object_id and a.database_id = DB_ID()
--WHERE b.object_id > 100

http://jeffstevenson.karamazovgroup.com/2011/10/sql-server-most-utilized-tables.html
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Audit has been really one of the more interesting, most useful, yet difficult to maintain topics in the history of SQL Server. In earlier versions of SQL people had very few options for auditing in SQL Server. It typically meant using SQL Trace …
There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

828 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