I hate case sensitivity in databases, but I’m developing for a client who uses it. How can I turn on this option on my SQL Server, so I can be sure I’ve gotten the case right in all my queries?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
How about:
See BOL for a list of collation options and pick the case-sensitive one that best fits your needs (i.e. the one your client is using).
Obviously, it’s probably a good idea to make a full backup of your database before you try this. I’ve never personally tried to use a database with a different collation than the server’s default collation, so I don’t know of any ‘gotchas’. But if you have good backups and test it in your environment before deploying it to your client, I can’t imagine that there’s much risk involved.