Context Switching
The topics in this section provide information to help you understand and implement context switching in modules and sessions. For more information, see the Security Tutorial, Ownership Chains and Context Switching.
In This Section
Topic | Description |
---|---|
Describes execution context and the login and user security tokens. |
|
Describes how an execution context can be switched from one login or user to another for the purposes of impersonation. |
|
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 to extend user impersonation beyond the scope of the current database. |
|
Describes how to use EXECUTE AS inside modules such as stored procedures, triggers, queues, and user-defined functions. |
See Also
Other Resources
EXECUTE (Transact-SQL)
EXECUTE AS (Transact-SQL)
EXECUTE AS Clause (Transact-SQL)
REVERT (Transact-SQL)