srv_impersonate_client (Extended Stored Procedure API)

Tries to assume the client's security information.

Syntax

BOOL srv_impersonate_client (SRV_PROC * srvproc);

Arguments

  • drvproc
    Is a pointer to the SRV_PROC structure that is the handle for a particular client connection. The structure contains all the information that the Extended Stored Procedure API library uses to manage communications and data between the application and the client.

Returns

true when the impersonation attempt is successful; otherwise, false.

Remarks

srv_impersonate_client executes code in an extended stored procedure by using the client's credentials. This might be useful in situations in which the client account has permissions that the SQL Server account does not. SQL Server uses this call internally.

See Also

Other Resources