SQL / T-SQL CASE SENSITIVE SELECT
A very simple method to force case sensitivity in a select statement:
SELECT * FROM DBusers WHERE username = ‘AGENT1′ AND password = ‘paSSworD’ COLLATE SQL_Latin1_General_Cp1_CS_AS
The above statement will only return rows where the password value is exactly paSSworD, case specific.
Loading...
Hey… this came in very handy for me today. Just wanted to say thanks.
Scott - June 24, 2009 at 6:04 pm