|
|
|
SSC-Insane
         
Group: General Forum Members
Last Login: Today @ 2:51 AM
Points: 21,357,
Visits: 9,531
|
|
L' Eomot Inversé (12/5/2011)
Pieter de K (12/5/2011) Interesting... When I run the example on my SQL Server (Denali, CTP 3) the result is: A,D,B,E,CThat's startling. I don't have a modern (windows 7 or later) platform available to test on, but given that all the locales ids are different there should be no imaginable way for a new locale version to affect the order of these collations; the only thing I can thionk of is that some locale ids have been changed. It would be useful if you could run the following code and post the results here, so that we can see what has happened in Denali to make this order change. select cname CollationName, collationproperty(cname,'LCID') LCID from (values('bosnian_latin_100_ci_as'), ('corsican_100_ci_as'), ('latin1_general_100_ci_as'), ('norwegian_100_ci_as'), ('romansh_100_ci_as') ) X(cname)
He edited out his comment.
I've run the same thing on Denali CTP3 and it returns the same results as sql 2008 R2.
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Wednesday, October 24, 2012 8:17 PM
Points: 1,558,
Visits: 247
|
|
Good question and great explanation. I learned something new today. Thanks for submitting.
http://brittcluff.blogspot.com/
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Monday, May 13, 2013 10:26 AM
Points: 581,
Visits: 693
|
|
Great question and great explanation. I can see how this could cause unexpected behavior. I definitely learned something today.
Thanks,
Matt
|
|
|
|
|
SSCoach
         
Group: General Forum Members
Last Login: Thursday, May 16, 2013 1:46 PM
Points: 18,732,
Visits: 12,329
|
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, January 31, 2013 8:53 AM
Points: 1,176,
Visits: 778
|
|
| Thanks Tom for another great question. Another valuable lesson in an area rarely used by me in my day to day. Cheers mate!
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 6:38 PM
Points: 7,077,
Visits: 7,116
|
|
Ninja's_RGR'us (12/5/2011)
L' Eomot Inversé (12/5/2011)
Pieter de K (12/5/2011) Interesting... When I run the example on my SQL Server (Denali, CTP 3) the result is: A,D,B,E,CThat's startling. I don't have a modern (windows 7 or later) platform available to test on, but given that all the locales ids are different there should be no imaginable way for a new locale version to affect the order of these collations; the only thing I can thionk of is that some locale ids have been changed. It would be useful if you could run the following code and post the results here, so that we can see what has happened in Denali to make this order change. select cname CollationName, collationproperty(cname,'LCID') LCID from (values('bosnian_latin_100_ci_as'), ('corsican_100_ci_as'), ('latin1_general_100_ci_as'), ('norwegian_100_ci_as'), ('romansh_100_ci_as') ) X(cname)
He edited out his comment. I've run the same thing on Denali CTP3 and it returns the same results as sql 2008 R2. Thanks for the good news, Remi; I was quite wondering what on earth could be going on, and it's nice to know that it was nothing.
Tom Que conclure à la fin de tous mes longs propos? C'est que les préjugés sont la raison des sots. (Voltaire, 1756)
|
|
|
|
|
SSC-Insane
         
Group: General Forum Members
Last Login: Today @ 2:51 AM
Points: 21,357,
Visits: 9,531
|
|
L' Eomot Inversé (12/5/2011)
Ninja's_RGR'us (12/5/2011)
L' Eomot Inversé (12/5/2011)
Pieter de K (12/5/2011) Interesting... When I run the example on my SQL Server (Denali, CTP 3) the result is: A,D,B,E,CThat's startling. I don't have a modern (windows 7 or later) platform available to test on, but given that all the locales ids are different there should be no imaginable way for a new locale version to affect the order of these collations; the only thing I can thionk of is that some locale ids have been changed. It would be useful if you could run the following code and post the results here, so that we can see what has happened in Denali to make this order change. select cname CollationName, collationproperty(cname,'LCID') LCID from (values('bosnian_latin_100_ci_as'), ('corsican_100_ci_as'), ('latin1_general_100_ci_as'), ('norwegian_100_ci_as'), ('romansh_100_ci_as') ) X(cname)
He edited out his comment. I've run the same thing on Denali CTP3 and it returns the same results as sql 2008 R2. Thanks for the good news, Remi; I was quite wondering what on earth could be going on, and it's nice to know that it was nothing.
HTH. You're still <somewhat> saine-ish .
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: 2 days ago @ 7:19 AM
Points: 1,562,
Visits: 1,716
|
|
| This all sounds like yet another reason to never use SQL_VARIANT columns in your database.
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: 2 days ago @ 10:57 AM
Points: 1,632,
Visits: 10,850
|
|
Great question. Not what I would have expected....but then, many aspects of SQLVariants are not what I would expect.
Rob Schripsema Accelitec, Inc
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 10:09 PM
Points: 5,658,
Visits: 6,100
|
|
Rob Schripsema (12/5/2011) Great question. Not what I would have expected....but then, many aspects of SQLVariants are not what I would expect.
Agreed, it's like opening Pandora's Box. I'm not even sure what led Tom to finding this nugget, nevermind how I'd go about finding the full answer if he hadn't spoon-fed me what was going on in a reasonable amount of time.
Variant can burn from everything I've been seeing on the complexity of its rulesets.
- Craig Farrell
Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.
For better assistance in answering your questions | Forum Netiquette For index/tuning help, follow these directions. |Tally Tables Twitter: @AnyWayDBA
|
|
|
|