skip to main content
Interface Provider class : ipProcedureDynamic
 

ipProcedureDynamic

If your IP is to support stored procedure calls that return one or more results sets that are defined at runtime, you must implement this method in your IP. The OpenAccess SDK SQL engine passes stored procedure calls to this method for all stored procedures marked in the schema as supporting results defined at run-time.
Stored procedure calls are invoked using the ODBC stored procedure invocation syntax. ipGetSupport should return true for IP_SUPPORT_PROCEDURE.
int ipProcdureDynamic(
    long   hstmt,
    int    iType,
    xo_long piNumResRows)
Table 25. Parameters for ipProcedureDynamic
Parameter
Type
Description
INPUT
hstmt
long
The statement handle of the currently active statement.
iType
int
Type of operation requested:
*DAM_DSP_INIT - initialize
*DAM_DSP_EXECUTE - execute the stored procedure and return either all rows or the first block of rows from the current result set. If the IP is written to work in cursor mode, then return DAM_SUCCESS_WITH_RESULT_PENDING after returning a block of rows.
*DAM_FETCH - get the next set of rows from the current result set. Return DAM_SUCCESS_WITH_RESULT_PENDING when more rows are pending. Return DAM_SUCCESS when completed.
*DAM_CLOSE - cleanup processing of the current result set.
piNumResRows
xo_long
The number of rows affected by this operation.
RETURN
int
DAM_SUCCESS - on success
DAM_FAILURE - on failure
DAM_SUCCESS_WITH_MORE_RESULT_SETS - more results available.

See also

*ipGetSupport