<?xml version="1.0" encoding="iso-8859-1"?><!-- generator="b2evolution/4.0.3" -->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Data Management - Latest Comments on SQL Advent 2012 Day 3: Sargable Queries</title>
		<link>http://blogs.lessthandot.com/index.php/DataMgmt/?disp=comments</link>
		<atom:link rel="self" type="application/rss+xml" href="http://blogs.lessthandot.com/index.php/DataMgmt/?tempskin=_rss2&#38;disp=comments&#38;p=1926" />
		<description></description>
		<language>en-GB</language>
		<docs>http://backend.userland.com/rss</docs>
		<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=4.0.3"/>
		<ttl>60</ttl>
				<item>
			<title>SQLDenis [Member] in response to: SQL Advent 2012 Day 3: Sargable Queries</title>
			<pubDate>Tue, 04 Dec 2012 13:55:49 +0000</pubDate>
			<dc:creator>SQLDenis [Member]</dc:creator>
			<guid isPermaLink="false">c11235@http://blogs.lessthandot.com/</guid>
			<description>Liviu, I don&#039;t understand your point, if they are all case sensitive then this should still return the same 1 row</description>
			<content:encoded><![CDATA[Liviu, I don't understand your point, if they are all case sensitive then this should still return the same 1 row]]></content:encoded>
			<link>http://blogs.lessthandot.com/index.php/DataMgmt/DBProgramming/sargable-queries#c11235</link>
		</item>
				<item>
			<title> liviu [Visitor] in response to: SQL Advent 2012 Day 3: Sargable Queries</title>
			<pubDate>Tue, 04 Dec 2012 13:46:43 +0000</pubDate>
			<dc:creator>liviu [Visitor]</dc:creator>
			<guid isPermaLink="false">c11234@http://blogs.lessthandot.com/</guid>
			<description>What about the situation where the server and database all have case sensitive collations.&lt;br /&gt;
&lt;br /&gt;
The trick with:&lt;br /&gt;
SELECT * FROM CaseSensitiveSearch&lt;br /&gt;
WHERE Val = &#039;ABCD&#039; COLLATE SQL_Latin1_General_CP1_CS_AS&lt;br /&gt;
AND Val LIKE &#039;ABCD&#039;&lt;br /&gt;
&lt;br /&gt;
will not work anymore because&lt;br /&gt;
&lt;br /&gt;
&#039;abcd&#039; LIKE &#039;ABCD&#039; is false...&lt;br /&gt;</description>
			<content:encoded><![CDATA[What about the situation where the server and database all have case sensitive collations.<br />
<br />
The trick with:<br />
SELECT * FROM CaseSensitiveSearch<br />
WHERE Val = 'ABCD' COLLATE SQL_Latin1_General_CP1_CS_AS<br />
AND Val LIKE 'ABCD'<br />
<br />
will not work anymore because<br />
<br />
'abcd' LIKE 'ABCD' is false...<br />]]></content:encoded>
			<link>http://blogs.lessthandot.com/index.php/DataMgmt/DBProgramming/sargable-queries#c11234</link>
		</item>
			</channel>
</rss>
