Re: how to make case sensitive query
From: Uri Dimant (urid_at_iscar.co.il)
Date: 11/29/04
- Next message: Dejan Sarka: "Re: T-sql to restore log files similar to Log shipping"
- Previous message: Suresh: "how to make case sensitive query"
- In reply to: Suresh: "how to make case sensitive query"
- Next in thread: Uri Dimant: "Re: how to make case sensitive query"
- Reply: Uri Dimant: "Re: how to make case sensitive query"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 29 Nov 2004 09:18:28 +0200
Suresh
There are some examples
create table ABCD
(
[id]smallint not null,
description varchar(20) null
)
insert into ABCD([id],description)values (1,'DFh2AcZ')
insert into ABCD([id],description)values (2,'dHZ3')
)
SELECT description FROM ABCD where charindex(cast('H' as
varbinary(20)),cast(description as varbinary(20)))> 0
SELECT description
FROM ABCD
WHERE description ='dhZ3'COLLATE Latin1_General_BIN
SELECT description
FROM ABCD
WHERE charindex('h',description COLLATE Latin1_General_BIN)>0
"Suresh" <Suresh@discussions.microsoft.com> wrote in message
news:AA1AC827-DA0D-421E-9118-662848C0AB7C@microsoft.com...
> I need to retrive the a case sensitive value from a string.
> like select All_Capital_Alphebets("This Is My String")
> Expected result : "TIMS" (ie all capital letters from the string.
>
> How can i achieve this.
>
> Thanks in advance
>
> Suresh
- Next message: Dejan Sarka: "Re: T-sql to restore log files similar to Log shipping"
- Previous message: Suresh: "how to make case sensitive query"
- In reply to: Suresh: "how to make case sensitive query"
- Next in thread: Uri Dimant: "Re: how to make case sensitive query"
- Reply: Uri Dimant: "Re: how to make case sensitive query"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|