Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding records with respect to casing
Message
 
 
To
08/03/2009 15:33:39
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01386512
Message ID:
01386513
Views:
42
>I need to find some records that have a specific casing. However, by default, SQL Server is retrieving all the records that match my SQL no matter if the field is containing lowercase or uppercase characters. How can I force my SQL to retrieve the records in respect to the casing I am searching for?
>
>Basically, I can have something like this:
>
>
>select * from member where City='Petit-Rocher'
>
>
>But, in the result, I also get Petit-rocher.

You can use Collate. I covered it in my SQL column in UT magazine a while ago.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform