I have created account like
User name: Admin
Password: Ad@123
but it doesn't check for capital and small letters on both user name & password.
It open with : admin
ad@123
I have created account like
User name: Admin
Password: Ad@123
but it doesn't check for capital and small letters on both user name & password.
It open with : admin
ad@123
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh KumarPosted Feb 12, 2023, 5:41 AM
Hello Nuru,
please check below link, you need to use, COLLATE SQL_Latin1_General_CP1_CS_AS to match case-sensitive check,
https://www.c-sharpcorner.com/blogs/how-to-do-case-sensitive-string-match-in-sql-server1
Vishal JoshiPosted Feb 12, 2023, 4:56 AM
Hello
You can try the below way to accomplish the task. try a case-insensitive comparison by using InvariantCultureIgnoreCase.
Thanks
Naimish MakwanaPosted Feb 12, 2023, 4:51 AM
Hello NURU,
If you want to check capital and small letter in both then you can do following
.Or
You can convert the vallue ToLower and compare with lower case only.
Example :
Thanks
Naimish Makwana