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 |
|
pushp82
Yak Posting Veteran
83 Posts |
Posted - 2012-07-23 : 02:26:08
|
| Hi, How can I compare two string in t-sql like :@string1='W79GnbSAFm2rDYOR'@string2='w79gNBsaFm2rDYOr'I need to compare caps and small alphabets. Can I use BINARY_CHECKSUMCHECKSUMOr any other solution like ASCII value comparison?Please help ASAP.Pushp |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
|
|
pushp82
Yak Posting Veteran
83 Posts |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2012-07-23 : 10:26:45
|
| i usually use case sensitive collation for doing comparisons like this------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
pushp82
Yak Posting Veteran
83 Posts |
Posted - 2012-07-24 : 05:36:56
|
I used varbinary comparision quote: Originally posted by visakh16 i usually use case sensitive collation for doing comparisons like this------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/
|
 |
|
|
|
|
|