Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
micnie_2020
Posting Yak Master
232 Posts |
Posted - 2010-04-19 : 22:30:22
|
| Dear All,TableA---------Name CodeA 123bhg71B AB788HC 778899D vt78892Output needed--------------A & D Only*********************************SQL Statement Below only can give me up to this resultA, B & D. SELECT NamesFROM TableAWHERE Code LIKE '%[a-z]%' *********************************************I can't proceed of checking of case sensitive. Anyone can help me??Thank you.Regards,Micheale |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
|
micnie_2020
Posting Yak Master
232 Posts |
Posted - 2010-04-20 : 01:36:03
|
| Dear Sir,If i don't have collation case sensitive, what other method can be used to trace out all the column contain lower case value??Please Advise.Regards,Micheale |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2010-04-20 : 03:37:46
|
| SELECT NamesFROM TableAwhere cast(code as varbinary(100))=cast(lower(code) as varbinary(100))and code like '%[a-z]%'MadhivananFailing to plan is Planning to fail |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-04-20 : 09:36:05
|
quote: Originally posted by micnie_2020 Dear Sir,If i don't have collation case sensitive, what other method can be used to trace out all the column contain lower case value??Please Advise.Regards,Micheale
nope you can still force case sensitive collation while searching using COLLATE. see solution in link posted earlier------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
|
|
|