Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Case Sensitive Operator In SQL

Status
Not open for further replies.

Creeder

Programmer
Jul 5, 2000
110
MY
Is there an operator In SQL that allow you search a value using case sensitive mode? By using the "=" sign the select statement will not differentiate between "Test" and "test"

Thanks.
 

You can convert the column and criteria to binary and compare as in the following example.

SELECT * FROM TABLE1
WHERE CAST(Col1 AS VARBINARY(16)) = CAST('Test' AS VARBINARY(16)) Terry L. Broadbent
faq183-874 contains some tips and ideas for posting questions in these forums. Please review it and comment if you have time.
NOTE: Reference to the FAQ is part of my signature and is not directed at any individual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top