Indexing

Beneficial SQL Server Indexing tips, tutorials, how-to’s, scripts, and more for SQL Server DBAs.

Querying SQL Server Index Statistics

Indexes are a great way to improve the performance of queries. However, they require regular monitoring and maintenance to ensure that the system continues to function smoothly. If indexes are not monitored regularly and appropriate action not taken then

Index Create Memory Setting for SQL Server

Today, a developer reported that he is not able to create an index in our development environment and is getting this error: Msg 8606, Level 17, State 1, Line 1 This index operation requires 1024 KB of memory per DOP. The total requirement of 2048 KB for

SQL Server 2012 Column Store Index Example

The amount of data in data warehouses is growing rapidly. At the same time, the query performance against these same data warehouses is degrading. I heard SQL Server 2012 introduces a new way of creating/managing/storing indexes which improves the perfor

What are the SQL Server _WA_Sys… statistics?

I was checking the statistics objects in my Microsoft SQL Server database and found some statistics with strange names. Could you please explain what the _WA_Sys... statistics are? Why are they created? Can I safely delete them? Do they differ from the ot

Using Hints To Test SQL Server Indexes

When tuning indexes, it is somewhat difficult to tell how much impact the changes you have made will have on a query. Other than just looking at the different execution plans, is there an easy way to compare the queries using the old and new indexes?

SQL Server Indexing Basics

I have seen your tips on indexing and I think they are great. I am relatively new to SQL Server and need to understand the basics. I need some additional background information to understand what sorts of indexing options are available. Hopefully that

SQL Server Filtered Indexes

SQL Server 2008 introduces Filtered Indexes which is an index with a WHERE clause. For example, you have a lot of NULL values in a column and you want to retrieve records with only non-NULL values (in SQL Server 2008, this is called Sparse Column). Or in