I restored a backup of a database from SQL Server 2008 R2 to SQL Server 2012.
When I try to access a particular page of my application, I get this error:
Cannot execute as the database principal because the principal "dbo" does not exist
It works with my 2008 R2 project perfectly. How can I resolve this issue?
ALTER AUTHORIZATION ON DATABASE::[<dbname>] TO [sa];as noted on the question that is stated above as the original of this duplicate. – isapir Dec 09 '16 at 21:07