Recently, one of my friends sent me email that he is having some problem with his very small database. We talked for a few minutes and we agreed that to further investigation, I will need access to the whole database. As the database was very big he dropped it in a common location. Let us learn about error Database diagram support objects cannot be installed because this database does not have a valid owner.
I was able to install the database successfully. He informed me that he has created a database diagram so I can easily understand his database tables. As soon as I tried to open the database diagram I faced following error. For a while I could not figure out how to resolve the error.
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.
Workaround / Fix / Solution :
Well, for a while I attempted few things and nothing worked. After that I carefully read the error and I realized that a solution was proposed in the error only. I just have to read it carefully. Here are the steps I did to make this work.
-- Replace YourDatabaseName in following script 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 should solve your problem.
Please note, I suggest you check your security policies before changing authorization. I did this to quickly solve my problem on my development server. If you are on production server, you may open yourself to potential security compromise.
Reference:Â Pinal Dave (https://blog.sqlauthority.com)
184 Comments. Leave new
THANK YO SO MUCH
Wow. Thanks Dave. This post is very helpful.
This resolved my problem.
Glad it helped Reon!
Great help!
Thank you very much!
Glad it helped you Irina!
Thanks Alot. It worked.
Sure, thanks.
Thank a lot, Worked!!
Great Indra.
thank you work it.
Muugii,
Thanks for letting us know.
Thank you so much! :)
Rosalie – its my pleasure.
You are my hero!!!
finsj – Thanks.
grazie…. molto grazie…!
Thanks Cesar
Thanks for your help!!!
Moises – my pleasure.
Thanks alot bro
Thanks. It helped a lot.
Grate!
Thanks. This worked for me as well, but I would really like to understand WHY it worked! It had been set with my domain and user id (which I would have thought would work, but didn’t.)
thank you very much for your kindly help
You are born for Database :)
Thanks a lot.
Thanks. Wish I found this before pulling out ALL of my hair!
Dear Pinal; You are a real hero! i have not seen such simple GUI based and understandable solution for this. Thanks again. Just another prompt show about “this database does not have one or more of the support objects required to use database diagramming”. I was wondering if I can use your next idea about it too. Best wieshes
Just hit “Yes” on the error message and it would create system objects needed for database diagram support.
IT’S still give the same error.
——————————
“This backend version is not supported to design database diagrams or tables. (MS Visual Database Tools)”
Are you sure that above message is in SQL Server Management Studio?