Wednesday 13 February 2013

Database diagram support objects cannot be installed

Database diagram support objects cannot be installed because this database does not have a valid owner

The error

"Database diagram support objects 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 AUTHORIZATION statement to set the database owner to a valid login, then add the database diagram support objects."

The fix

The information provided by SSMS was very helpful but anyway.

Reason
the database has lost its owner and needs to be corrected, simply done with:

ALTER AUTHORIZATION ON DATABASE::databasename TO sa 

replace sa and databasename with your variables

No comments:

Post a Comment