![]() |
|

|
|
By: Edgewood Solutions | Read Comments (1) | Related Tips: More > Indexing |
Problem
The concept of index creation has always been a tricky orchestration. To maximize performance and indexes by the optimizer, queries should be covered by an index-that is, the index should include all columns requested in the query. There are limitations to creating indexes that make covering queries difficult:
Solution
A new type of index was developed in SQL Server 2005 that assists in covering queries: Indexes With Included Columns. Indexes with Included Columns are nonclustered indexes that have the following benefits:
As with traditional non-clustered indexes, the non-key columns are added to the leaf level of the index, meaning these indexes have the same affect on disk space, I/O (due to index maintenance), and cache efficiency. This should be taken into account when contemplating index creation using included columns.
How do I create an Index with Included Columns?
Using Microsoft SQL Server Management Studio
Navigate to the index to be modified. Right-click the index and choose Properties:

Click on Included Columns:

Check the columns you wish to include and click OK:


Next Steps
| Wednesday, March 11, 2009 - 10:49:46 PM - arbalu | Read The Tip |
|
thanks for this post. i found that it was very useful tips to me. balu http://developerskb.blogspot.com |
|
|
privacy | disclaimer | copyright | advertise | about authors | contribute | feedback | giveaways | user groups Some names and products listed are the registered trademarks of their respective owners. Edgewood Solutions LLC | MSSharePointTips.com | MSSQLTips.com |