Hi
Use the COLLATE clause and specify a case sensitive collation.
SELECT Col1
FROM ( SELECT 'A' AS Col1
UNION ALL SELECT 'a' ) DT
WHERE col1 = 'A'
SELECT Col1
FROM ( SELECT 'A' AS Col1
UNION ALL SELECT 'a' ) DT
WHERE col1 = 'A' COLLATE Latin1_General_CS_AI
Alternatively a more permanent option would be to change the column
collation using the ALTER TABLE statement or possibly propage changes up
through the whole system
http://tinyurl.com/5m7qv
John
"David Rawheiser" <ra*******@hotmail.com> wrote in message
news:xF*********************@bgtnsc05-news.ops.worldnet.att.net...
"jo*******@BEA.com" <jo***********@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com... update mytable set mydatum = UPPER(mydatum)
where mydatum != UPPER(mydatum)
You think that would work, as simple as it is, right? ... but NO!
That will only work if the database is case sensitive.
With a case insensitive collation the compaison will return true even if
they aren't
in that case add a specific COLLATE clause to insure that the comparison
is done case sensitive.