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

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

AskSQLTeam
Ask SQLTeam Question

USA
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

rprice
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

jsmith8858
Dr. Cross Join

USA
7423 Posts

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

- Jeff
http://weblogs.sqlteam.com/JeffS
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.42 seconds. Powered By: Snitz Forums 2000