[unixODBC-support] Sample C code for a stored procedure

Nick Gorham nick.gorham at easysoft.com
Wed Oct 12 21:01:48 BST 2005


Stephen More wrote:

> Can anyone provide me with some small sample C code to call a stored 
> procedure using unixODBC ?
>
> The stored procedure I am trying to call has no IN parameters and has 
> 3 OUT paramters ( FLOAT, FLOAT, INTEGER ).
>
>
> I have had no luck with
>
> php:
>      Some databases (such as IBM DB2, MS SQL Server, and Oracle) 
> support stored procedures that accept parameters of type IN, INOUT, 
> and OUT as defined by the ODBC specification. However, the Unified 
> ODBC driver currently only supports parameters of type IN to stored 
> procedures.
>
If the driver doesn't OUT parameters than you may be out of luck. Can 
you cause the procedure to return a result set of the values instead ?

-- 
Nick Gorham
Easysoft Limited



More information about the unixODBC-support mailing list