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
 General SQL Server Forums
 New to SQL Server Programming
 Indexes
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jabu
Starting Member

South Africa
2 Posts

Posted - 10/09/2012 :  07:50:35  Show Profile  Reply with Quote
Why do constraints use indexes?

robvolk
Most Valuable Yak

USA
15663 Posts

Posted - 10/09/2012 :  09:26:14  Show Profile  Visit robvolk's Homepage  Reply with Quote
Unique and primary key constraints use indexes to maintain uniqueness, foreign keys, check and default constraints do not. Index structures make it easier to navigate key values and are more efficient if you have to search for a possibly duplicate value.

SQL Server uses B+ Trees as their index structure, you can read about them here:

http://en.wikipedia.org/wiki/B%2B_tree
http://msdn.microsoft.com/en-us/library/ms177484.aspx
http://msdn.microsoft.com/en-us/library/ms177443.aspx
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.06 seconds. Powered By: Snitz Forums 2000