Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 1234»»»

Indexes in SQL Server 2005 Expand / Collapse
Author
Message
Posted Monday, January 18, 2010 9:39 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Monday, January 23, 2012 3:55 AM
Points: 90, Visits: 135
Comments posted to this topic are about the item Indexes in SQL Server 2005
Post #849488
Posted Monday, January 18, 2010 10:58 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, July 29, 2014 8:47 AM
Points: 2,296, Visits: 1,427
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
Post #849514
Posted Monday, January 18, 2010 11:09 PM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Saturday, March 30, 2013 6:06 AM
Points: 532, 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

Post #849517
Posted Monday, January 18, 2010 11:22 PM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, January 21, 2014 7:57 AM
Points: 2,173, Visits: 344
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 ...!
Post #849520
Posted Tuesday, January 19, 2010 12:35 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: 2 days ago @ 1:36 PM
Points: 6,002, Visits: 8,267
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
Post #849540
Posted Tuesday, January 19, 2010 12:56 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, August 5, 2014 2:43 AM
Points: 2,086, Visits: 105
Good question, but it is true for SQL 2008 and not for SQL 2005!!!
Post #849544
Posted Tuesday, January 19, 2010 1:23 AM
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Friday, May 9, 2014 12:47 AM
Points: 3,448, Visits: 4,407
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".
Post #849551
Posted Tuesday, January 19, 2010 1:32 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Monday, September 1, 2014 6:55 AM
Points: 2,366, Visits: 1,845
Will we get our points back.

"Keep Trying"
Post #849553
Posted Tuesday, January 19, 2010 1:48 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: 2 days ago @ 1:36 PM
Points: 6,002, Visits: 8,267
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
Post #849557
Posted Tuesday, January 19, 2010 2:23 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Thursday, August 28, 2014 7:17 AM
Points: 1,608, 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.
Post #849574
« Prev Topic | Next Topic »

Add to briefcase 1234»»»

Permissions Expand / Collapse