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

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.

Solution:
-- Replace YourDatabaseName
ALTER AUTHORIZATION ON DATABASE::YourDatabaseName TO [sa]
GO
  • Select your database >> Right Click >> Select Properties
  • Select FILE in left side of page
  • In the OWNER box, select button which has three dots (…) in it
  • Now select user ‘sa’ or NT AUTHORITY\SYSTEM and click OK.


This entry was posted in . Bookmark the permalink.

Leave a Reply