SQL-Server: Impersonation
- by Falcon
Hello,
is there any way to make a certain session execute all commands as a certain user? I cannot use the execute as clause because it mustn't be hardcoded.
I need something along the lines of this pseudocode:
ALTER SESSION sessionid SET EXECUTING_USER=someuser