"Surely this one will get a clustered index scan."
In which SQL Server stubbornly insists on doing key lookups way, way past the tipping point.
View ArticleSQL Prompt Code Analysis: Table does not have clustered index (BP021)
With a few exceptions, every table should have a clustered index. However, they are not always essential for performance. The value of a clustered index depends on the way a table is used, the typical...
View ArticleTables Without Clustered Indexes
When databases are being designed and developed, your developers might have overlooked creating clustered indexes on some of your database tables. Having a useful clustered index on your tables will...
View ArticleWhere Clustered Index Keys Dare
We’ve blogged a couple times about how clustered index key columns get stored in your nonclustered indexes. But where they get stored is a matter of weird SQL trivia. You see, it depends on how you...
View ArticlePerformance Myths : Clustered vs. Non-Clustered Indexes
Aaron Bertrand kicks off his "Performance Myths" series, showing a "redundant" non-clustered index outperforming the clustered index with the same key.
View ArticleComparing Space Usage for Different Compression Types
This is an investigation, to get an impression on the impact of the used disk space before and after compression considering different index types. How to fix SQL Server disk I/O bottlenecks (without a...
View ArticleWhy Primary Keys can be important on large tables
I inherited a database that was getting large and not performing well. After adding primary keys life got better.
View ArticlePrimary Keys which are not Clustered Indexes in a database
Recently I was asked to find all the Primary keys that are not clustered Indexes in the database. I constructed the below script which will help us to locate the primary keys in the database which are...
View ArticleNonClustered Index Structure
Learn how the clustered index keys affect the non clustered index structure.
View ArticleWhy Primary Keys can be important on large tables
I inherited a database that was getting large and not performing well. After adding primary keys life got better.
View ArticleGet the all the tables on the server which do not have Clustered index
Get the list of the tables on the server which dont have the clustered index.
View ArticleWhen SQL Server Nonclustered Indexes Are Faster Than Clustered Indexes
SQL Server Clustered indexes can have enormous implications for performance of operations on a table. But are there times when a SQL Server non-clustered index would perform better than a clustered...
View ArticlePrimary Keys which are not Clustered Indexes in a database
Recently I was asked to find all the Primary keys that are not clustered Indexes in the database. I constructed the below script which will help us to locate the primary keys in the database which are...
View ArticleTables and Clustered Indexes Part 2
A table does not so much 'have' a clustered index as a table 'is' a clustered index.
View ArticleCan a Table Really Have a Clustered Index?
A table doesn't so much "have" a clustered index as a table "is" a clustered index.
View ArticleSQL Server Tables without a Clustered Index
It is a general best practice to have a clustered index on all of your SQL Server tables. Unfortunately, not everybody knows that. This tip helps you find tables that do not have a clustered index.
View Article