Home Contact RSS

Microsoft SQL Server Error 5030

So, if you are trying to change the collation of a database and getting error 5030, this is much likely because you cannot change the collation of a database when it is in Multi_User mode. In this case, you should try to run the following query.

-- the following line sets the database to "Single User" mode
ALTER DATABASE DBNAME SET SINGLE_USER WITH ROLLBACK IMMEDIATE
-- the following line sets the new collation
ALTER DATABASE DBNAME COLLATE COLLATIONNAME
-- the following line sets the database back to "Multi User" mode
ALTER DATABASE DBNAME SET MULTI_USER

DBNAME: Database name
COLLATIONNAME: New collation’s name. E.g.: Latin1_General_CI_AI

bamboo coverlet said,

August 26, 2010 @ 14:55

thanks for good content that work for change collation in database

navid said,

September 4, 2010 @ 12:08

tanx very much

Antispam service said,

September 16, 2010 @ 03:08

thanks for good content that work for change collation in database
+1

Potenzmedizin Osterreich said,

October 24, 2010 @ 11:22

Vielen Dank.
Fritz aus Wien.

Leticia said,

November 26, 2010 @ 22:35

Worked properly, tks a lot!

razi said,

January 9, 2011 @ 10:42

It solved my problem
Thanks millions!

Manos said,

January 10, 2011 @ 13:58

Worked for me too. Thank you very much!

Spyros said,

January 25, 2011 @ 23:30

Thank you worked like a charm !!!!!

+1 said,

May 1, 2011 @ 11:52

+1

suneeta said,

May 10, 2011 @ 19:29

thanq so much it wrk out for me

v-najian_iran said,

October 13, 2011 @ 09:29

thnx alot

RSS feed for comments on this post · TrackBack URI

Leave a Comment