Oracle Consulting Oracle Training Oracle Support Development
Home
Catalog
Oracle Books
SQL Server Books
IT Books
Job Interview Books
eBooks
Rampant Horse Books
911 Series
Pedagogue Books

Oracle Software
image
Write for Rampant
Publish with Rampant
Rampant News
Rampant Authors
Rampant Staff
 Phone
 800-766-1884
Oracle News
Oracle Forum
Oracle Tips
Articles by our Authors
Press Releases
SQL Server Books
image
image

Oracle 11g Books

Oracle tuning

Oracle training

Oracle support

Remote Oracle

STATSPACK Viewer

Privacy Policy

 

   
  SQL Server Tips by Burleson

Security / Connection Management

srv_getbindtoken

This function obtains a bind token so that an XP can share the same transaction lock space as the client that called the XP. This is useful where your XP will be manipulating some data that is also being operated on by the client while avoiding the locks, which would otherwise occur. For a concrete example of using this function, please refer to the XP_ODBC example provided by MS or the equivalent implementation called XP_ODBC++ provided with the code samples accompanying this book.

srv_impersonate_client

This function allows you to impersonate or take on the security credentials of the client session that called the XP. This is used to avoid security issues, which could occur due to execution of XP code with elevated security privileges. Its operation is similar to the other Windows impersonation API’s such as ImpersonateLoggedOnUser, ImpersonatedNamedPipeClient, RpcImpersonateClient etc. Again this function is not officially documented as part of the ODS API. For an example of its usage please refer to the XP_ODBC example.

srv_revert_to_self

This is the corollary function to “srv_impersonate_client”. For every call to srv_impersonate_client, you should have a matching call to this function. Again this function is not officially documented as part of the ODS API. For an example of its usage please refer to the XP_ODBC example.


The above book excerpt is from:

Super SQL Server Systems
Turbocharge Database Performance with C++ External Procedures

ISBN: 0-9761573-2-2
Joseph Gama, P. J. Naughter

 http://www.rampant-books.com/book_2005_2_sql_server_external_procedures.htm  

Linux Oracle commands syntax poster

ION Oracle tuning software

Oracle data dictionary reference poster



Oracle Forum

BC Oracle consulting support training

BC remote Oracle DBA   

 

   

 Copyright © 1996 -2017 by Burleson. All rights reserved.


Oracle® is the registered trademark of Oracle Corporation. SQL Server® is the registered trademark of Microsoft Corporation. 
Many of the designations used by computer vendors to distinguish their products are claimed as Trademarks
 

Hit Counter