An error occurred while viewing database properties on SQL Server.

Source: Internet
Author: User
Tags microsoft sql server management studio sql server management studio

During cluster maintenance of SQL Server 2005, the following problem occurs:

When the resource group is on one node, log on to the database with SA and view the attributes of the user database from management studio. This is normal, but when the resource group is transferred to another node, log on to the database with SA and view the attributes of the user database from management studio. the following error is reported:

Title: Microsoft SQL Server Management Studio
------------------------------
The request dialog box cannot be displayed.
------------------------------
Other information:
The request dialog box cannot be displayed. (Sqlmgmt)
------------------------------
The property owner cannot be used for Database "XXXX ". This object may not have this attribute or cannot be retrieved due to insufficient access permissions. (Microsoft. sqlserver. SMO)


The first possible cause is the permission, but it is already a SA user. It should not be a direct cause.

It seems to be a problem with the user database owner,


After a rough comparison, the owner_sid of the user database does not exist in SYS. syslogins. It is estimated that the owner of the user database may be a local user.

Then, move the Resource Group to a normal node and open the attributes of the user database. The result is as follows:


Naturally, the owner is the local administrator. Because the owner is a local user, after switching the resource group, the owner cannot be found on another node, and an error is reported.

The solution is simple, that is, to change the owner to a user that can be found on both nodes. Execute the following statement and change the owner to sa.

ExecSp_changedbowner'Sa'

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.