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 |
|
raghava
Starting Member
3 Posts |
Posted - 2006-01-27 : 05:31:19
|
| hihow to check case sensitivity in T-sql.I need to distinguish upper & lower case values in table fields.example:--------emp table having 3 colsempid ename salary1 xyz 30002 XYZ 4000any body pls helpbest regards raghava |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-01-27 : 05:56:10
|
| [code]Declare @v1 varchar(10),@v2 varchar(10)set @v1='xyz'set @v2='XYZ'select case when @v1=@v2 then 'Case Insensitive' else 'Case Sensitive' endselect case when convert(varbinary(10),@v1)=convert(varbinary(10),@v2) then 'Case Insensitive' else 'Case Sensitive' end[/code]MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|