Changing the collation of a database

You can change the collation by using SSMS.

Right click on database, click on properties. click on options on the left hand pane. Select the collation from the drop down list.

you can alternatively use the script

ALTER DATABASE <<db_name>>
COLLATE <<collation_name>>

example:
ALTER DATABASE TEST_DATABASE
COLLATE SQL_Latin1_General_CP1_CI_AS

it will be better if you change the database to single user mode before changing the collation. You can use the scripts given below for that

ALTER  DATABASE <<db_name>>  SET SINGLE_USER  WITH NO_WAIT
EXEC   SP_DBOPTION   ‘<<db_name>>’,’SINGLE USER’,’TRUE’

7 Comments

  1. Hey, I read a lot of blogs on a daily basis and for the most part, people lack substance but, I just wanted to make a quick comment to say GREAT blog!…..I”ll be checking in on a regularly now….Keep up the good work! :)

  2. I’ve been exploring for a little bit for any high-quality articles or weblog posts in this kind of house . Exploring in Yahoo I finally stumbled upon this web site. Studying this information So i am glad to convey that I have a very good uncanny feeling I came upon just what I needed. I most definitely will make certain to do not forget this site and provides it a look on a continuing basis. Meghan

  3. I’m amazed, I have to admit. Seldom do I encounter a blog that’s
    equally educative and entertaining, and without a doubt, you have hit the nail on the head.

    The problem is something that not enough people are speaking intelligently about.

    Now i’m very happy that I found this during my search for something regarding this.

  4. Thanks for every other informative blog. Where else may just I
    am getting that type of information written in such
    an ideal manner? I have a undertaking that I am simply now working on,
    and I’ve been at the glance out for such information.

Leave a reply to Tnelson Cancel reply