Quantcast
Viewing all articles
Browse latest Browse all 12963

Execute As Error

We are migrating from one server to another and I am finding on the new server we have an execute as error.

I have restored all but the system databases over to the new server for testing, I am currently a local administrator on the server and a system admin on SQL, the version of SQL we are using is SQL 2005 64 bit 9.0.5057.

Here is the problem

Logged in as me

exec as login = '<mydomainlogin>'  results in the following error

Msg 15406, Level 16, State 1, Line 1

Cannot execute as the server principal because the principal "<mydomainlogin>" does not exist, this type of principal cannot be impersonated, or you do not have permission.

This seemed to be before I attempt to access any databases, the permission seems to fail completely.

I have checked sys.sysprinciples and my login is there so there seems to be an issue with the command exec as login, as using my credentials as I am logged in should execute it.

The exec as login seems to be for every user, I have tried logging in as other users and I receive the same error.

Can anyone shed any light ?


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>