Any inputs on making Like keyword in Microsoft SQL server act as Case-sensitive.
For example : Name Like 'David' gets all the names David or david or daVid etc. My goal is to get only David.I am interested in knowing different ways from the experts.
You need to use collation.
SELECT * FROM myTable
WHERE LastName COLLATE Latin1_General_CS_AS = 'smyTH'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With