Reprinted the database could not being exclusively locked to perform the operation (SQL Server 5030 Error Resolution)

Source: Internet
Author: User

SQL Server 5030 Error Resolution

Today when using SQL Server, because the database was previously created forgot to set collocation, the database inserted Chinese characters are garbled, so into the options of the databases to modify collocation, the database has appeared could Not being exclusively locked to perform the operation this error, cannot modify character set to Chinese_prc_90_ci_as.

The solution was found for a long time, as follows:

1. Execute SQL ALTER DATABASE db_database SET single_user with ROLLBACK IMMEDIATE

Modify to single-user mode

2. Then close all the query Windows and modify the options collocation property to Chinese_prc_90_ci_as

3. Execute SQL ALTER DATABASE db_database SET multi_user

And then modify it to multi-user mode

Sunny Peng Source: http://www.cnblogs.com/psunny/

Reprinted the database could not being exclusively locked to perform the operation (SQL Server 5030 Error Resolution)

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.