After restoring adventure works database, when trying to see database diagrams I got an error Cannot execute as the database principal because the principal “dbo” does not exist.
The solution is to reassign database owner using script
use [databasename] EXEC sp_changedbowner 'sa'
More Info
The solution is to reassign database owner using script
use [databasename] EXEC sp_changedbowner 'sa'
More Info
No comments:
Post a Comment