|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#16
|
||||
|
||||
|
I'm sure that this could be achieved much more simply by doing a varbinary comparison as shown below:
Code:
DECLARE @String1 varchar(10); DECLARE @String2 varchar(10); SET @String1 = 'TeSt StRiNg'; SET @String2 = 'tEsT sTrInG'; -- Straight string comparison IF @String1 = @String2 PRINT 'Matching strings'; -- Binary comparison IF CAST(@String1 AS varbinary(10)) = CAST(@String2 AS varbinary(10)) PRINT 'Matching strings'; Code:
Matching strings
__________________
selwonk |
|
#17
|
||||
|
||||
|
Sorry - read the OP more thoroughly and this is not the problem I thought you were describing...
|
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > SQL Exact Match |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|