
Reverting to a Previous Context
EXECUTE AS
Use the REVERT statement to return to the previous context. The caller of the REVERT statement must be in the same database where the impersonation occurred.
SETUSER
To return to the previous context, use the SETUSER statement without specifying a user name.