Receive the error: 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. (Microsoft SQL Server, Error: 15517)
USE AIMS
exec sp_changedbowner 'sa', 'true'
exec sp_changedbowner 'sa', 'true'