Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Colombo
RidhMathraa ’26 🎶✨
Tmadhusanka
Updated:
Wednesday at 11:58 PM
Ad icon
Colombo
PXN V10 Pro Direct Drive Racing Wheel (Under Warranty)
Abdur Rahman
Updated:
Wednesday at 10:23 PM
Ad icon
USDT ණය සේවාව - USDT Loan Service
පුරවැසියා
Updated:
Wednesday at 4:54 PM
Ad icon
🎮 INDIAN PSN GIFT CARDS AVAILABLE NOW! 🎮
madukaperera
Updated:
Tuesday at 12:57 PM
🚀 Google AI PRO – 18 Months | Rs. 850 Only
lkkolla
Updated:
Monday at 4:56 PM
Electronics
Vehicles
Property
Search
Reply to thread
Forums
Computers & Internet
Tips & Tricks
Case Sensitive SQL Query Search
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="Nohim Ys" data-source="post: 14337903" data-attributes="member: 370237"><p><span style="font-size: 15px">Have you ever noticed when you do a string comparison in SQL using '=' notation, case of the string is neglected ???</span></p><p><span style="font-size: 15px">For example, If TestTable has a TestColumn and it consist of values ‘CaseSearch, casesearch, CASESEARCH, CaSeSeArCh’, following statement will return you all the four records.</span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px">If you dont want to ignore case and return only the exact row with the specified value, the query should be modified as follows,</span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px">The above change should be done since the default Collation of the SQL Server installation SQL_Latin1_General_CP1_CI_AS is not case sensitive.</span></p><p></p><p></p><p><span style="font-size: 18px">Picked this from here - </span><a href="http://darshanaspinx.blogspot.com/2012/09/case-sensitive-sql-query-search.html" target="_blank"><span style="font-size: 18px"><span style="color: DarkRed">Reference</span></span></a></p></blockquote><p></p>
[QUOTE="Nohim Ys, post: 14337903, member: 370237"] [SIZE="4"]Have you ever noticed when you do a string comparison in SQL using '=' notation, case of the string is neglected ??? For example, If TestTable has a TestColumn and it consist of values ‘CaseSearch, casesearch, CASESEARCH, CaSeSeArCh’, following statement will return you all the four records. If you dont want to ignore case and return only the exact row with the specified value, the query should be modified as follows, The above change should be done since the default Collation of the SQL Server installation SQL_Latin1_General_CP1_CI_AS is not case sensitive.[/SIZE] [SIZE="5"]Picked this from here - [/SIZE][URL="http://darshanaspinx.blogspot.com/2012/09/case-sensitive-sql-query-search.html"][SIZE="5"][COLOR="DarkRed"]Reference[/COLOR][/SIZE][/URL] [/QUOTE]
Insert quotes…
Verification
Haya warak paha keeyada? (haya wadi kireema paha)
Post reply
Top
Bottom