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

 All Forums
 Site Related Forums
 Article Discussion
 Article: Using Included Columns in SQL Server 2005

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2008-01-14 : 08:45:02

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

rprice
Starting Member

3 Posts

Posted - 2008-01-29 : 05:05:38
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

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2008-02-14 : 07:30:22
Very nice article!

- Jeff
http://weblogs.sqlteam.com/JeffS
Go to Top of Page
   

- Advertisement -