Change SQL server case sensitivity

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?

Who is Participating?
What you do is just:

alter database tablename collate Latin1_General_CI_AS
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
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.


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

Heres an link how to change it:


bijualexAuthor Commented:
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?
bijualexAuthor Commented:
Removed those constraints, changed the collation and added the constraints. The table names can now be references in any case :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.