Hi All,
Recently @ time of checking records in Database table with case sensitive.
We are firing query like
select * from Tablename where strPassword = 'Vinay343@'
at the same time if we fire query like
select * from Tablename where strPassword = 'VINAY343@'
we are getting same result so technically me & vinay think that it is not good to get result if user send case sensitive input
after searching we found the solution that if we want to check exact match use query like this
select * from Tablename where strPassword COLLATE Latin1_General_ CS_AS='Vinaysha h0!'
here We get exact match as per the input
Thanks Vinay for sharing this information
Cheers!!!!
Recently @ time of checking records in Database table with case sensitive.
We are firing query like
select * from Tablename where strPassword = 'Vinay343@'
at the same time if we fire query like
select * from Tablename where strPassword = 'VINAY343@'
we are getting same result so technically me & vinay think that it is not good to get result if user send case sensitive input
after searching we found the solution that if we want to check exact match use query like this
select * from Tablename where strPassword COLLATE Latin1_General_
here We get exact match as per the input
Thanks Vinay for sharing this information
Cheers!!!!
No comments:
Post a Comment