Indexes in SQL Server 2005

  • Comments posted to this topic are about the item Indexes in SQL Server 2005

  • 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

  • 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

  • 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 ...!

  • 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/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

  • Good question, but it is true for SQL 2008 and not for SQL 2005!!!

  • 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".

  • Will we get our points back.

    "Keep Trying"

  • 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/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

  • 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.

  • I got the correct answer of 1000 but only because 250 wasnt there which was the correct answer for SQL SERVER 2005. 1000 is correct for SQL SERVER 2008. Hope this will be the last time there is an incorrect question / answer on the site as I always trust it!

  • Hi Thanks For Yours Valuable Opinons and Comments..!

  • I got right anwser but it's true for the SQL Server 2008 not for SQL Server 2005.

    Please Change the question or add one more option with 250.

  • I've just assumed there was typo and went with the 2008 answer.

  • Any of the given options are not correct for SQL Server 2005. it is only suitable for SQL server 2008

Viewing 15 posts - 1 through 15 (of 32 total)

You must be logged in to reply to this topic. Login to reply