Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 Site Related Forums
 Article Discussion
 Article: Using Included Columns in SQL Server 2005
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ask SQLTeam Question

0 Posts

Posted - 01/14/2008 :  08:45:02  Show Profile  Visit AskSQLTeam's Homepage  Reply with Quote

One of the new features found in SQL Server 2005 is the ability to add additional columns, called Included Columns, to a non-clustered index. This article will explain the advantages of using included columns and what impact they will have on your database.

Read Using Included Columns in SQL Server 2005

Starting Member

3 Posts

Posted - 01/29/2008 :  05:05:38  Show Profile  Reply with Quote
I found a good use for the Include. We have an 600,000 row table with an encrypted account number field. Users sometimes need to search on account number. The encrypted field is to big to be part of index key so SQL. To avoid SQL doing a table scan of 600,000 rows containing 100 or so fields, I created an index on the primary key and added the encrypted field to the include clause. This allows SQL to scan through all of the values much quicker than scanning the entire table.
Go to Top of Page

Dr. Cross Join

7423 Posts

Posted - 02/14/2008 :  07:30:22  Show Profile  Visit jsmith8858's Homepage  Reply with Quote
Very nice article!

- Jeff
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000