When attempting to create a database diagram I get the following error:
Cannot execute as the database principal because the principal "dbo" does not exist
How do I fix this error?
When attempting to create a database diagram I get the following error:
Cannot execute as the database principal because the principal "dbo" does not exist
How do I fix this error?
1条答案
按热度按时间zazmityj1#
This error occurs when the database owner for the files setting in the database properties is unassigned (or blank).
To fix this:
Files
from the left hand navigation menu of the dialog box.sa
in theowner
field.OK
This gives the
sa
permission to create files on the server.src: SQL SERVER – Fix Error – Cannot execute as the database principal because the principal “dbo” does not exist