September 4, 2008 at 11:29 pm
Comments posted to this topic are about the item Spatial Indexing
September 5, 2008 at 2:39 am
The MSDN article referred to is somewhat ambiguous, or perhaps the question is not formulated correctly to support the correct answer.
Ref. MSDN: "You can create up to 249 spatial indexes on any of the spatial columns in a supported table"
Does this mean you can create up to 249 spatial indexes on a table, or 249 spatial indexes on every spatial column in the table?
September 5, 2008 at 6:10 am
In BOL under ms-help://MS.SQLCC.v10/MS.SQLSVR.v10.en/s10de_6tsql/html/ee6b9116-a7ff-463a-a9f0-b360804d8678.htm
it is worded slightly differently in that it says
You can create up to 249 spatial indexes on each spatial column in a table.
That also leads be to believe that the question is incorrectly worded.
September 5, 2008 at 8:40 am
Got it right, have no problem with the wording. The article is a good and helpful.
Great Question/Thanks.
Miles...
Not all gray hairs are Dinosaurs!
September 5, 2008 at 8:44 am
The question is definately worded incorrectly.
"A spatial index can be created only on a spatial column. You can create spatial indexes on any spatial column in a table that supports spatial indexes, and you can create multiple spatial indexes on a given spatial column."
September 5, 2008 at 9:00 am
While you may have answered the question correctly, as did I, the question is undoubtedly worded incorrectly for the correct answer to be true.
The question was : "What is the maximum number of spatial indexes on a table in SQL Server 2008?"
Now if the question asked was: "What is the maximum number of spatial indexes on a spatial column in SQL Server 2008?" then 249 would be the correct answer.
However, 249 technically is not the correct answer for the question given because "You can create up to 249 spatial indexes on any of the spatial columns in a supported table." (http://technet.microsoft.com/en-us/library/bb964740.aspx). So, that means you would have to determine how many spatial columns you have in a given table to be able to determine how many spatial indexes the table would have.
September 5, 2008 at 9:03 am
AJ (9/5/2008)
The MSDN article referred to is somewhat ambiguous, or perhaps the question is not formulated correctly to support the correct answer.Ref. MSDN: "You can create up to 249 spatial indexes on any of the spatial columns in a supported table"
Does this mean you can create up to 249 spatial indexes on a table, or 249 spatial indexes on every spatial column in the table?
The wording in the article very clearly states that "you can create up to 249 spatial indexes ... in a supported table."
The question is worded perfectly based on the referenced article. If you were allowed to create 249 spatial indexes on every spatial column in the table, the article would be reworded to say:
"You can create up to 249 spatial indexes on each (as opposed to any) of the spatial columns in a supported table."
September 5, 2008 at 9:24 am
OK have it your way:
"You can create up to 249 spatial indexes on each spatial column in a table."
September 5, 2008 at 9:45 am
Spence L (9/5/2008)
"You can create up to 249 spatial indexes on each spatial column in a table."
http://msdn.microsoft.com/en-us/library/bb934196.aspx%5B/quote%5D
OK, my foot is securely located in my mouth now. π
Sounds like Microsoft needs to to decide how many spatial indexes they are going to allow in a table.
September 5, 2008 at 9:47 am
http://msdn.microsoft.com/en-us/library/bb964740.aspx
"You can create up to 249 spatial indexes on any of the spatial columns in a supported table."
you can have more than one spatial column therefore 249 * the spatial columns might be the correct answer, though it could mean the 249 might be the limit of indexes over the spatial columns. Hmmm....
Someone needs to test it........volunteers? π (how does 249 logically fit in as a number in a computer system (255 - 6)?)
but hey I picked the 249 answer and got a point (plus 1 for this post, as well) π
Hiding under a desk from SSIS Implemenation Work :crazy:
September 5, 2008 at 11:28 am
My curiosity is on "who picked the number 249?" and why?
Is there a significance that it's 255 - 6?
September 5, 2008 at 1:33 pm
The QOTD is correct. You cannot create more than 249 indexes on a table.
The referenced MSDN docs are incorrect or at least badly worded.
http://technet.microsoft.com/en-us/library/ms190197.aspx
(And I also tested it)
Best Regards,
Chris BΓΌttner
September 8, 2008 at 1:40 am
Christian Buettner (9/5/2008)
The QOTD is correct. You cannot create more than 249 indexes on a table.The referenced MSDN docs are incorrect or at least badly worded.
http://technet.microsoft.com/en-us/library/ms190197.aspx
(And I also tested it)
Good job Chris, thanks for testing it!
September 8, 2008 at 1:47 am
Cheers Chris! If this forum had rep it would be +rep for you dude! π
Thanks for clarifying the QOTD for us.
Microsoft - your documentation is ****. π
--Shaun
Hiding under a desk from SSIS Implemenation Work :crazy:
September 8, 2008 at 7:26 am
Christian Buettner (9/5/2008)
The QOTD is correct. You cannot create more than 249 indexes on a table.The referenced MSDN docs are incorrect or at least badly worded.
http://technet.microsoft.com/en-us/library/ms190197.aspx
(And I also tested it)
Yes great job Chris! Well it appears microsoft's documentation on spatial indexing is misleading at best. The page you referenced however clearly states 249 indexes per table. I'll be more cautious of their documentation in the future for sure.
Viewing 15 posts - 1 through 15 (of 16 total)
You must be logged in to reply to this topic. Login to reply