November 28, 2005 at 7:06 am
November 28, 2005 at 8:29 am
You can specify a casesensitive collation for each element in the replace, that way the replace will be casesensitive.
select replace('A' collate Latin1_General_CS_AS, 'a' collate Latin1_General_CS_AS, 'a' collate Latin1_General_CS_AS)
--------------------
A
(1 row(s) affected)
/Kenneth
November 28, 2005 at 9:54 am
Or you could use "Upper" & "Lower"...something like this...
SELECT REPLACE(UPPER('a'), 'A', LOWER('A')) AS UpperTOLower SELECT REPLACE(LOWER('A'), 'a', UPPER('A')) AS LowerTOUpper UpperTOLower ------------------------------ a (1 row(s) affected) LowerTOUpper ------------------------------ A (1 row(s) affected)
**ASCII stupid question, get a stupid ANSI !!!**
November 28, 2005 at 12:14 pm
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply