Call now: (800) 766-1884  


 SQL Server Tips
 SQL Server Training

 SQL Server Consulting
 SQL Server Support
 SQL Server Remote DBA

 SQL Server Scripts
 Scripts Menu




  SQL Server Tips by Gama and Naughter


To create an XP that does something useful, an XP must link to the ODS DLL “Opends60.lib”. This DLL exposes the ODS API that SQL Server uses to communicate with your XP and vice versa.

What follows is a simplified description of the functions which this DLL exposes and which your XP can call to perform its work. It describes the basic functionality exposed by each function, meaning that you should refer to the MSDN documentation for detailed information on the flags and parameters available. The discussion only covers the functions that are used for XP's and which are fully supported In SQL Server 2000.

Most of the functions exposed by this DLL take a SRV_PROC pointer. This should be the same value, which is passed to your XP’s main function. This pointer is called a “connection handle” and is an opaque data structure that SQL Server uses to communicate information between itself and your XP. This structure is not documented in any ODS header file, and just like a HANDLE in Win32 programming, it should be treated as opaque. We can well imagine that any ODS functions which takes a SRV_PROC parameter will internally query this structure in some way and return results back to us in our XP.

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  


Burleson Consulting Remote DB Administration







Burleson is the America's Team

Note: The pages on this site were created as a support and training reference for use by our staff of DBA consultants.  If you find it confusing, please exit this page.

Errata?  SQL Server technology is changing and we strive to update our SQL Server support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:and include the URL for the page.

Burleson Consulting
SQL Server database support


Copyright © 1996 -  2013 by Vaaltech Web Services. All rights reserved.

Hit Counter