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
| Print article | This entry was posted by Coskun SUNALI on 8 Oct 2009 - Thu at 19:17, and is filed under General. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 1 week ago
thanks for good content that work for change collation in database