srv_revert_to_self (Extended Stored Procedure API)
Ends the impersonation of a client application.
An extended stored procedure should call srv_revert_to_self after it ends any impersonation that was started by using srv_impersonate_client (Extended Stored Procedure API).
If srv_revert_to_self fails, an application continues to run in the context of the client. This might not be appropriate. When srv_revert_to_self fails, you should shut down the process.