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

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

South Africa
2 Posts

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

Most Valuable Yak

15729 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:

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.03 seconds. Powered By: Snitz Forums 2000