Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Indexes in Cache

Author  Topic 

coolerbob
Aged Yak Warrior

841 Posts

Posted - 2007-08-15 : 04:36:17
Using DMV's (or anything else), is it possible to write a query that tells us all the queries in the SQL cache that are using a certain index?

(Looking at sys.dm_db_index_usage_stats I may deduct that an index is rarely used, but without knowing where it DOES get used I can't safely test the impact of dropping it.)

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-08-15 : 22:22:54
You can check index usage statistics report.
Go to Top of Page

coolerbob
Aged Yak Warrior

841 Posts

Posted - 2007-08-16 : 03:20:33
That gives me the same info as sys.dm_db_index_usage_stats
It doesn't tell me which statements used those indexes.
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-08-16 : 23:04:53
You may need trace with profiler.
Go to Top of Page
   

- Advertisement -