We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now


Change SQL server case sensitivity

Medium Priority
Last Modified: 2012-05-06
Hi Experts
I have a big database (around 3000 tables) on SQL 2005 for which the collation is Latin1_General_BIN. It should be due to this, the table names and column names are case sensitive. We have developed a newer version of our application which talks to this database. The new application was developed on a test server/test db where the names are not case sensitive. Now wehn we try to   implement the new application, we realize that since the table names are case sensitive, the new application si giving error at many places. Is there an easy way to change the sql settings so that the original database/server is no more case sensitive?

Watch Question

As far my knowledge, you can refer db objects in any capitalization, in other words its case-insensitive
and that means

"SELECT Col1,col2 from mYtABLE"

and so on.

What I feel is you better look at your application code,

I think your application stored db column/table names in a variables and does some comparison, focus there

Or am I wrong?
well, you would need to change the collation, which can be a big task to perform


If you have a case-sensitive collation references to db objects are case-sensitive.

Heres an link how to change it:



What you do is just:

alter database tablename collate Latin1_General_CI_AS

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


I have tried to change the collation as specified in the above url. It gives me few erros saying that few constraints are dependent on database collation. I disabled these constraints, still I am getting the same error message. Any ideas?


Removed those constraints, changed the collation and added the constraints. The table names can now be references in any case :)
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.