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.

MongoDB Tutorial MongoDB Tutorial Table of Contents Introduction to MongoDB Installation Creating a Database Creati...