Export (0) Print
Expand All
1 out of 2 rated this helpful - Rate this topic

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.

Topic Description

Understanding Execution Context

Describes execution context and the login and user security tokens.

Understanding Context Switching

Describes how an execution context can be switched from one login or user to another for the purposes of impersonation.

EXECUTE AS vs. SETUSER

Compares and contrasts the EXECUTE AS statement and the SETUSER statement.

Using EXECUTE AS to Create Custom Permission Sets

Describes how to define custom permission sets using EXECUTE AS inside a module.

Extended Database Impersonation by Using EXECUTE AS

Describes how to use EXECUTE AS to extend user impersonation beyond the scope of the current database.

Using EXECUTE AS in Modules

Describes how to use EXECUTE AS inside modules such as stored procedures, triggers, queues, and user-defined functions.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.