My disk crashed so I reinstalled SQL Server to a new drive and restored my databases from my backup drive. However, when I attempt to install Diagram support, I get this message:
Cannot execute as the database principal because the principal "dbo" does not exist….
This issue is admirably answered here but the reply doesn't seem to apply in my case since running the first query in the "Solution" section returns no records so I have nothing to fix, yet I get that error message.
Here are my results from the queries suggested in that reply:
Please inform me how to resolve this matter.
Best Answer
The
owner
of yourdatabase
on the oldserver
was someWindows account
that does not exists aslogin
on the new server (if it existed, its loginsid
would match usersid
as it's Windows account, so it's Windowssid
).To fix it you can make
sa
theowner
of your database:Or any other
login
(I just don't see other logins on your picture that are not certificate logins)