Possible Duplicate:
SQL server ignore case in a where expression
basically I need to check something like this
select * from users where name = @name, pass = @pass
the problem is that 'pass' = 'pAsS'
is there something more strict for string comparison in sql (ms sql-server)
It’s down to your collation, which it would seem is case insensitive. For example, the standard collation is
Latin1_General_CI_AS, where theCImeans case insensitive. You can force a different collaction for a different comparison:Incidentally, you shouldn’t be storing passwords in your database – you should be salting and hashing them.