The database cocould not be exclusively locked to perform the operation (SQL Server 5030 error solution)

Source: Internet
Author: User

SQL Server 5030 error Solution

When I was using SQL Server today, because I forgot to set collocation when I created the database, Chinese characters inserted in the database were garbled, so I changed collocation in the options of the database, the database cocould not be exclusively locked to perform the operation error occurs. You cannot modify the character set to chinese_prc_90_ci_as.

The solution was found for a long time, as shown below:

1. Execute SQL alter database db_database set single_user with rollback immediate

Change to single-user mode

2. Close all query windows and modify the collocation attribute of options to chinese_prc_90_ci_as.

3. Execute SQL alter database db_database set multi_user

Change to multi-user mode

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.