Search This Blog

Total Pageviews

Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated, or you do not have permission.

Set the database owner to fix this issue.
Goto database properties -->Files-->Owner.

1 comment:

Eshu said...

Even If you have @test annotation if the server is busy or your code is building new flyway for database it creates this kind of error.
Try running again after few seconds.

Windows 8.3 file naming setting is disabled for the product

To enable Windows 8.3 file naming setting use fsutil command Example:  c:\> fsutil 8dot3name set C: 0