Changing the Database Collation

We are using a SQL Server 2005 database for our product, one of our client's database some how managed to change its collation. We have a tool that creates the database with its tables and some data with a set collation, but somehow our one client's collation is different. These changes appeared recently, is there a way I can change the collation back? Because at the moment if I try to change it I get dependency errors that stop me from changing it.

Also any idea as to what might have been the cause to these changes?

Thanks in advance
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RobertSystem AdminCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Vitor MontalvãoMSSQL Senior EngineerCommented:
I think LIBRALEX wants really to change the collation at the database level and not at the SQL Server instance level. For that the simple command may work:
ALTER DATABASE databaseName COLLATE NewCollationName  

Open in new window

Mind that this will only change the collation for the new objects that will be created after the above command being executed, meaning that existing objects will still keep their old collations. For that you'll need to go through all objects and change their columns where it has old collation. Something like:
 ALTER COLUMN ColumnName COLLATE NewCollationName

Open in new window

Luckily somebody already had the issue and worked on a script to save you time. Check here the solution.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.