SQL Server does not have valid owner issues with this database

Source: Internet
Author: User
After you create a new database or attach a database, you want to add a relational table, resulting in the following error:

The database diagram support object cannot be installed because this database does not have a valid owner. To continue, first use the Files page of the Database Properties dialog box or the Alter
The authorization statement sets the database owner to a valid login, and then adds the database diagram support object.
The first way to change is not possible, and the owner of the file is also SA. Netizens have given a way to run the following command:
ALTER AUTHORIZATION on Database::mydbname to SA
To change the mydbname to the actual database name, you can set the owner to SA.

SQL Server does not have valid owner issues with this database

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.