Board index » delphi » MS SQL Server Extended Stored Procedures and the Open Data Services API
Scott Vickery
![]() Delphi Developer |
Sun, 04 Sep 2005 07:50:32 GMT
MS SQL Server Extended Stored Procedures and the Open Data Services API
Good afternoon,
I am attempting to create a dll with Delphi that will be called from an extended stored procedure residing in MS SQL server. The dll is called just fine. However, I appear to be having problems receiving the parameters from the stored procedure. The call to srv_rpcparams always returns -1. If I try to retrieve parameter information, it is not there. So, even ignoring this problem, I do not get anywhere. I have stripped out most of the code I am working with to attempt to get to the root of the problem. Here is the Pascal code: =========== Unit with API declarations =========== interface type type function srv_rpcparams( implementation function srv_rpcparams; external 'opends60.dll' name 'srv_rpcparams'; ============= dll unit ============ uses function xp_checkParamCount(srvproc: PSRV_PROC): SRVRETCODE; =========== creating the XP ============ ============= calling the XP ============ Any ideas what I am doing wrong? Thanks in advance, |