Change the sort order to sort by say Table name and then Index name.
Peter Samson,
2010-11-02 (first published: 2010-02-04)
Change the sort order to sort by say Table name and then Index name.
use <mydatabase> go select o.name as 'Table' , i.name as 'Index' , i.rowcnt as 'Est Rows' , u.user_seeks as 'Seeks' , u.user_scans as 'Scans' , u.user_lookups as 'Lookups' from sys.dm_db_index_usage_stats as u inner join sys.sysobjects as o on u.object_id = o.id and o.xtype = 'U' inner join sys.sysindexes as i on u.index_id = i.indid and o.id = i.id where u.user_scans > 0 and i.rowcnt >= 1000 order by u.user_scans desc go
Are you rebuilding statistics twice on your tables? Longtime expert, Andy Warren, shows why you might be asking more work of your SQL Server than is required.
Optimize SQL Server non-clustered indexes and queries by considering index fields, compound indexes and SQL Server statistics' impact on non-clustered indexes.
2008-03-05
3,828 reads
Indexes directly affect the performance of database applications. This article uses analogies to describe how indexes work. The estimated execution plan feature of the Query Window is utilized to compare the performance of two queries in a batch.
2007-12-04
5,686 reads
SQL Server 2000 has indexed views, which can greatly improve database performance. However there are a number of restrictions on building the view, including the restriction against outer joins. So how can this work? New author Jean Charles Bulinckx brings us a technique that can help you get around this restriction.
2005-05-19
20,441 reads
There is nothing spectacular about using indexes per say. However, on many occasions I have come across a variety of SQL coders that never consider validating that the index they think they are using is efficient or even being used at all. We can all put indexes on the columns that we think will be required to satisfy individual queries, but how do we know if they will ever be used. You see, if the underlying table data is constructed, contains, or is ordered in a particular way, our indexes may never be used. One of the factors around the use of an index is its clustering factor and this is what this article is about.