Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Indexes in SQL Server 2005


Indexes in SQL Server 2005

Author
Message
suresh.theyyath
suresh.theyyath
SSC Journeyman
SSC Journeyman (90 reputation)SSC Journeyman (90 reputation)SSC Journeyman (90 reputation)SSC Journeyman (90 reputation)SSC Journeyman (90 reputation)SSC Journeyman (90 reputation)SSC Journeyman (90 reputation)SSC Journeyman (90 reputation)

Group: General Forum Members
Points: 90 Visits: 135
Comments posted to this topic are about the item Indexes in SQL Server 2005
Arjun SreeVastsva
Arjun SreeVastsva
SSCrazy
SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)

Group: General Forum Members
Points: 2529 Visits: 1642
ACTUALLY MAXIMUM INDEXES IN TABLE IN 2008 IS 1000 2005 IS 250..? BUT THERE IS NO OPTION...? CAN WE CHECK THE QUESTION AND ANSWERS ARE MY ANSWER IS WRONG
jagadeesanpv
jagadeesanpv
Mr or Mrs. 500
Mr or Mrs. 500 (534 reputation)Mr or Mrs. 500 (534 reputation)Mr or Mrs. 500 (534 reputation)Mr or Mrs. 500 (534 reputation)Mr or Mrs. 500 (534 reputation)Mr or Mrs. 500 (534 reputation)Mr or Mrs. 500 (534 reputation)Mr or Mrs. 500 (534 reputation)

Group: General Forum Members
Points: 534 Visits: 224
I think raj is correct, for 2005 = 250 and 2008 = 1000

Please check this URL for 2005
http://msdn.microsoft.com/en-us/library/ms188783(SQL.90).aspx
Sree Divya
Sree Divya
SSCrazy
SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)

Group: General Forum Members
Points: 2360 Visits: 405
In SQL Server 2005 :
you can have

1 Clustered Index on a table and
249 Non Clustered Indexes.

= 250 Index


In SQL Server 2008:
you can have

1 Clustered Index on a table and
999 Nonclustered Indexes

= 1000 Index

Please Modify the Question Or Answers....!

I think Raj gave right solution ...!
Hugo Kornelis
Hugo Kornelis
SSCrazy Eights
SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)

Group: General Forum Members
Points: 8352 Visits: 11594
I chose an incorrect answer so I could get the llink to this discussion. And then, I was even rewarded with a point.

To add to the others, the correct answer for SQL Server 2005 (which is mentioned explicitly in the question) is not included. And to correct them, the correct answer for SQL Server 2008 is not listed either.

For SQL Server 2005:
Up to 1 clustered index, up to 249 nonclustered indexes, and up to 249 XML indexes (http://msdn.microsoft.com/en-us/library/ms143432%28SQL.90%29.aspx), plus a number of full-text indexes for which I was unable to find a maximum

For SQL Server 2008:
Up to 1 clustered index, up to 999 nonclustered indexes, and up to 249 XML indexes (http://msdn.microsoft.com/en-us/library/ms143432.aspx), plus a number of full-text indexes and a number of spatial indexes for which I was unable to find the maximums.

That makes the correct answers: 499 + max FT indexes for SQL Server 2005, and 1249 + max FT indexes + max spatial indexes for SQL Server 2008.

(edit - corrected a silly mistake, as pointed out by vk-kirov)


Hugo Kornelis, SQL Server MVP
Visit my SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
dgvozdetsky
dgvozdetsky
SSCrazy
SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)

Group: General Forum Members
Points: 2382 Visits: 113
Good question, but it is true for SQL 2008 and not for SQL 2005!!!
vk-kirov
vk-kirov
Hall of Fame
Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)

Group: General Forum Members
Points: 3494 Visits: 4408
Hugo Kornelis (1/19/2010)
For SQL Server 2008:
Up to 1 clustered index, up to 999 nonclustered indexes, and up to 999 XML indexes (http://msdn.microsoft.com/en-us/library/ms143432.aspx), plus a number of full-text indexes and a number of spatial indexes for which I was unable to find the maximums.

249 XML indexes, actually.
The maximum number of spatial indexes can be found here: http://msdn.microsoft.com/en-us/library/ms190197.aspx, and it's 249.
So the correct answer for SQL Server 2008 is "1 clustered + 999 nonclustered + 249 XML + 249 spatial + some full-text", which is "1498 + some full-text".
ChiragNS
ChiragNS
SSCrazy
SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)

Group: General Forum Members
Points: 2409 Visits: 1865
Will we get our points back.

"Keep Trying"
Hugo Kornelis
Hugo Kornelis
SSCrazy Eights
SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)

Group: General Forum Members
Points: 8352 Visits: 11594
vk-kirov (1/19/2010)
Hugo Kornelis (1/19/2010)
For SQL Server 2008:
Up to 1 clustered index, up to 999 nonclustered indexes, and up to 999 XML indexes (http://msdn.microsoft.com/en-us/library/ms143432.aspx), plus a number of full-text indexes and a number of spatial indexes for which I was unable to find the maximums.

249 XML indexes, actually.
The maximum number of spatial indexes can be found here: http://msdn.microsoft.com/en-us/library/ms190197.aspx, and it's 249.
So the correct answer for SQL Server 2008 is "1 clustered + 999 nonclustered + 249 XML + 249 spatial + some full-text", which is "1498 + some full-text".

OOPS. That was a very silly mistake I made there. Thanks for correcting me; I edited my original post to reduce the chance of confusion when others read it.


Hugo Kornelis, SQL Server MVP
Visit my SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
Dietmar Weickert
Dietmar Weickert
SSCommitted
SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)

Group: General Forum Members
Points: 1608 Visits: 374
So far I never asked for a review of the QotD before it is going to be published, as this would mean a big effort for Steve or some other top experts. But today I am joining the Choir of the Dissatisfied.

http://msdn.microsoft.com/en-us/library/ms143432(SQL.90).aspx shows it clearly: there is a maximum of 250 indices per table, one of them clustered.

Best regards,
Dietmar Weickert.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search