<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Using SQL Execution Plans to discover the Swedish alphabet</title><link>http://sqlblog.com/blogs/rob_farley/archive/2011/01/03/using-sql-execution-plans-to-discover-the-swedish-alphabet.aspx</link><description>SQL Server is quite remarkable in a bunch of ways. In this post, I’m using the way that the Query Optimizer handles LIKE to keep it SARGable, the Execution Plans that result, Collations, and PowerShell to come up with the Swedish alphabet. SARGability</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>re: Using SQL Execution Plans to discover the Swedish alphabet</title><link>http://sqlblog.com/blogs/rob_farley/archive/2011/01/03/using-sql-execution-plans-to-discover-the-swedish-alphabet.aspx#32245</link><pubDate>Mon, 03 Jan 2011 11:39:14 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:32245</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;What happened to W?&lt;/p&gt;</description></item><item><title>re: Using SQL Execution Plans to discover the Swedish alphabet</title><link>http://sqlblog.com/blogs/rob_farley/archive/2011/01/03/using-sql-execution-plans-to-discover-the-swedish-alphabet.aspx#32246</link><pubDate>Mon, 03 Jan 2011 11:58:43 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:32246</guid><dc:creator>Rob Farley</dc:creator><description>&lt;p&gt;It's been pointed out that W is missing in my list. Wikipedia says: &amp;quot;Until recently the letter ‹w› was treated as a variant form of ‹v› at least for sorting purposes, and this practice is still commonly encountered.&amp;quot;&lt;/p&gt;
&lt;p&gt;So I guess this explains why the EndRange value following V is X.&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;
</description></item><item><title>re: Using SQL Execution Plans to discover the Swedish alphabet</title><link>http://sqlblog.com/blogs/rob_farley/archive/2011/01/03/using-sql-execution-plans-to-discover-the-swedish-alphabet.aspx#32354</link><pubDate>Wed, 05 Jan 2011 20:38:51 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:32354</guid><dc:creator>kendra little</dc:creator><description>&lt;p&gt;SQL Server isn't the only thing that's remarkable.&lt;/p&gt;
&lt;p&gt;I'm not sure if this is a masterpiece, if I just learned something, or if I should be a little bit afraid.&lt;/p&gt;</description></item><item><title>re: Using SQL Execution Plans to discover the Swedish alphabet</title><link>http://sqlblog.com/blogs/rob_farley/archive/2011/01/03/using-sql-execution-plans-to-discover-the-swedish-alphabet.aspx#32454</link><pubDate>Sun, 09 Jan 2011 23:36:50 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:32454</guid><dc:creator>KDF9</dc:creator><description>&lt;p&gt;Running SET SHOWPLAN_TEXT ON; GO; SET NOEXEC OFF; GO; SELECT col FROM dbo.collation_test where col like 'V%'; in Management Studio Express 9 gives the same results.&lt;/p&gt;
&lt;p&gt;But with default SQL_Latin1_General_CP1_CI_AS collation, the lower bound is strangely different, and the second LIKE is needed because the seek has a &amp;gt;=&amp;#254;, hex FE, where &amp;gt;hex FF would be expected:&lt;/p&gt;
&lt;p&gt;SEEK:([MyDatabase].[dbo].[collation_test].[col] &amp;gt;= '&amp;#220;&amp;#254;' AND [MyDatabase].[dbo].[collation_test].[col] &amp;lt; 'W'), &lt;/p&gt;
&lt;p&gt;WHERE:([MyDatabase].[dbo].[collation_test].[col] like 'V%') ORDERED FORWARD)&lt;/p&gt;</description></item><item><title>re: Using SQL Execution Plans to discover the Swedish alphabet</title><link>http://sqlblog.com/blogs/rob_farley/archive/2011/01/03/using-sql-execution-plans-to-discover-the-swedish-alphabet.aspx#32511</link><pubDate>Tue, 11 Jan 2011 09:43:40 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:32511</guid><dc:creator>Adde</dc:creator><description>&lt;p&gt;W is a very rare letter in swedish, I honestly can't think of any words (apart from names and imported foreign words) that contain W.&lt;/p&gt;
&lt;p&gt;The alphabet they teach the kids in school these days doesn't even contain W and I'm pretty sure our phonebooks and dictionaries treat V and W as the same letter orderwise.&lt;/p&gt;</description></item></channel></rss>