Please start any new threads on our new site at http://forums.sqlteam.com. 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!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Indexes
 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
15732 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  
 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.32 seconds. Powered By: Snitz Forums 2000