Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Limit on indexes per table in SQL Server.

Status
Not open for further replies.

borach

Programmer
May 1, 2001
3
US
Are there any limitations for the number of indexes per table in SQL Server 7.0 (or per database for that matter). I know there are in Access 2000 (namely 32 indexes per table). Do you know any readings on the subject?
 
I have never heard of a limit on number of indexes on SQL server. Basically, so long as you can create a unique name for each one, it should allow you the index.

However, it is never a very good idea to have a lot of indexes, as every time you update the base table, SQL server also has to update the indexes, and if you have many, the overhead will make your updates and inserts very slow.

If you want more than 5% of the data returned, or if there are less than 4 possible values for a field, it is really worth creating an index??

Tim
 

Both SQL 7 and SQL 2000 allow 249 nonclustered and 1 clustered index per table. Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top