<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>oue&#039;s profile &#187; case sensitive</title>
	<atom:link href="http://www.aspgod.com/tag/case-sensitive/feed" rel="self" type="application/rss+xml" />
	<link>http://www.aspgod.com</link>
	<description>AI algorithm graphics programming blog Firefox ff</description>
	<lastBuildDate>Fri, 20 Jan 2012 16:59:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Case Sensitive SQL Query with SQL Server</title>
		<link>http://www.aspgod.com/sql-server/case-sensitive-sql-query-with-sql-server.html</link>
		<comments>http://www.aspgod.com/sql-server/case-sensitive-sql-query-with-sql-server.html#comments</comments>
		<pubDate>Wed, 20 Jan 2010 04:13:33 +0000</pubDate>
		<dc:creator>aspgod</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[case sensitive]]></category>
		<category><![CDATA[query]]></category>

		<guid isPermaLink="false">http://www.aspgod.com/?p=414</guid>
		<description><![CDATA[ปกติแล้ว sql server ถ้าเรา select อะไรก็ตามแล้ว where name = &#8216;oue&#8217; ผลลัพธ์ที่ได้มาก็จะมีทั้ง oue, Oue, oUe, ouE เพราะว่า default เป็น non Case Sensitive แต่ถ้าผมต้องการให้ query เฉพาะ &#8216;oue&#8217; ล่ะจะทำอย่างไร ก็ทำตาม code ด้านล่างเลยครับ 1 2 3 select * from user where nickname COLLATE Latin1_General_CS_AS = 'oue' แค่นี้เอง สั้นๆง่ายๆ ครับ No related posts. Related posts brought to you by Yet [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>ปกติแล้ว sql server ถ้าเรา select อะไรก็ตามแล้ว where name = &#8216;oue&#8217; ผลลัพธ์ที่ได้มาก็จะมีทั้ง oue, Oue, oUe, ouE เพราะว่า default เป็น non Case Sensitive แต่ถ้าผมต้องการให้ query เฉพาะ &#8216;oue&#8217; ล่ะจะทำอย่างไร ก็ทำตาม code ด้านล่างเลยครับ</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">select</span> <span style="color: #008000;">*</span>
<span style="color: #0600FF; font-weight: bold;">from</span> user
<span style="color: #0600FF; font-weight: bold;">where</span> nickname COLLATE Latin1_General_CS_AS <span style="color: #008000;">=</span> <span style="color: #666666;">'oue'</span></pre></td></tr></table></div>

<p>แค่นี้เอง สั้นๆง่ายๆ ครับ</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.aspgod.com/sql-server/case-sensitive-sql-query-with-sql-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>string.Equals compare with string.Compare Asp.Net</title>
		<link>http://www.aspgod.com/aspnet/string-equals-compare-with-string-compare-asp-net.html</link>
		<comments>http://www.aspgod.com/aspnet/string-equals-compare-with-string-compare-asp-net.html#comments</comments>
		<pubDate>Fri, 28 Aug 2009 02:54:18 +0000</pubDate>
		<dc:creator>aspgod</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[case sensitive]]></category>
		<category><![CDATA[string compare]]></category>

		<guid isPermaLink="false">http://www.aspgod.com/myprofile/?p=320</guid>
		<description><![CDATA[When compare the string with not sure that the case of the string like (&#8220;aAa&#8221;, &#8220;aaa&#8221;, &#8220;AAA&#8221;). Normally I used the string.ToLower() to manage this problem but there&#8217;re many way to solved this. Look at my code below. 1 string.Compare&#40;s1, s2, true&#41; This function return integer. s1 > s2 then return 1 s1 < s2 [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>When compare the string with not sure that the case of the string like (&#8220;aAa&#8221;, &#8220;aaa&#8221;, &#8220;AAA&#8221;). Normally I used the string.ToLower() to manage this problem but there&#8217;re many way to solved this. Look at my code below.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Compare</span><span style="color: #008000;">&#40;</span>s1, s2, <span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">&#41;</span></pre></td></tr></table></div>

<p>This function return integer.<br />
s1 > s2 then return 1<br />
s1 < s2 then return -1<br />
s1 = s2 then return 0<br />
The 3rd pamerater is the "ignoreCase" then set it true to non-case sensitive</p>
<p><strong>Example</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #6666cc; font-weight: bold;">string</span> s1 <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;aAa&quot;</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>s1<span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;aaa&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #008080; font-style: italic;">// false because the case sensitive</span>
<span style="color: #008000;">&#123;</span>
    <span style="color: #008080; font-style: italic;">// do something</span>
<span style="color: #008000;">&#125;</span>
<span style="color: #0600FF; font-weight: bold;">else</span> <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>s1 <span style="color: #008000;">==</span> <span style="color: #666666;">&quot;aaa&quot;</span><span style="color: #008000;">&#41;</span> <span style="color: #008080; font-style: italic;">// false because the case sensitive</span>
<span style="color: #008000;">&#123;</span>
    <span style="color: #008080; font-style: italic;">// do something</span>
<span style="color: #008000;">&#125;</span>
<span style="color: #0600FF; font-weight: bold;">else</span> <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Compare</span><span style="color: #008000;">&#40;</span>s1, <span style="color: #666666;">&quot;aaa&quot;</span>, <span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">==</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">&#41;</span> <span style="color: #008080; font-style: italic;">// true enable non-case sensitive</span>
<span style="color: #008000;">&#123;</span>
    <span style="color: #008080; font-style: italic;">// do something</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.aspgod.com/aspnet/string-equals-compare-with-string-compare-asp-net.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

