select l_name from logintbl where l_pass='ABC'
then I get the login name . Same result is displayed when I write the query by following way
select l_name from logintbl where l_pass='abc'
I required that records must be find only by small letters not by capital letters in sql server 2005 . Please help me in this regard.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


VulpesRank #55 · 29.2K reputationPosted Aug 9, 2012, 9:50 AM EDT
This thread shows how you can do this:
http://stackoverflow.com/questions/137452/how-do-i-change-sql-server-2005-to-be-case-sensitive
Akkiraju IvaturiRank #473 · 5.3K reputationPosted Aug 12, 2012, 6:46 PM EDT
Jignesh TrivediRank #16 · 50.3K reputationPosted Aug 12, 2012, 10:03 PM EDT
you also use collation type with your select query.
try following queries... both have different result.
select l_name from logintbl where l_pass collate Latin1_General_CS_AS ='ABC'
select l_name from logintbl where l_pass collate Latin1_General_CS_AS ='abc'
hope this will help you.