The topics in this section provide information to help you understand and implement context switching in modules and sessions.
Describes how an execution context can be switched from one login or user to another for the purposes of impersonation.
Describes execution context and the login and user security tokens.
Describes how SQL Server supports impersonation and delegation.
Describes how to use EXECUTE AS to extend user impersonation beyond the scope of the current database.
Compares and contrasts the EXECUTE AS statement and the SETUSER statement.
Describes how to define custom permission sets using EXECUTE AS inside a module.
Describes how to use EXECUTE AS inside modules such as stored procedures, triggers, queues, and user-defined functions.
Provides a tutorial that shows SQL Server security concepts that involve ownership chains and user context switching.