Welcome, Guest. Please login or register.
September 05, 2010, 05:17:35 PM
Home Help Search Login Register
News: Please note membership by invitation only

+  svekweb.co.uk
|-+  SQL Server
| |-+  SQL Server Tips
| | |-+  Indexes on SQL Server
« previous next »
Pages: [1] Print
Author Topic: Indexes on SQL Server  (Read 175 times)
Svek Web
Administrator
Newbie
*****
Posts: 23


View Profile Email
« on: March 04, 2010, 10:08:14 AM »

The key tables for any sort of database index tuning are :-
sys.dm_db_index_usage_stats
sys.dm_db_missing_index_details
sys.dm_db_missing_index_groups
sys.dm_db_missing_index_group_stats

Key point though - these statistics are cumulative since the last serve restart so don't try tuning on a cold server!

Resources
dm_db_index_usage_stats - http://msdn.microsoft.com/en-us/library/ms188755.aspx
dm_db_missing_index_details - http://msdn.microsoft.com/en-us/library/ms345434.aspx
dm_db_missing_index_groups http://msdn.microsoft.com/en-us/library/ms345407.aspx
dm_db_missing_index_group_stats  http://msdn.microsoft.com/en-us/library/ms345421.aspx

Note that missing index details will be captured automatically unless SQL is started with the -x flag and that there are quite a few limitations to the missing indexes so if you've got over 500 missing index groups it's not really going to help you
 
« Last Edit: March 04, 2010, 10:10:50 AM by Svek Web » Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!