Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Case sensitive selection in case insensitive database
Message
 
 
À
30/04/2007 14:39:55
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01221228
Message ID:
01221230
Vues:
12
>Our SQL SERVER is set for case insensitive. But we need to do the case sensitive selection. For example, we have a field called Letters. In this field, we have 'ABCD', 'AbCd', 'ABCd', 'ABCD','abcd'. We only need select the record having this field ='AbCd'.
>
>How can we write this SQL selection?
>
>Regard
>
>Jim

Answer from another forum: (http://tek-tips.com/viewthread.cfm?qid=1305916)

Select * From @Temp Where Data Collate SQL_Latin1_General_CP1_CS_AS = 'Blue'

Or Re: Case Sensitive comparaison, simple one! Thread #637469 Message #1091060
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform