Powered by Zoomin Software. For more details please contactZoomin

DataDirect OpenAccess SDK Help

OASQLIP_open_next_cursor

  • Last Updated: May 12, 2026
  • 1 minute read
    • OpenAccess SDK
    • Version 8.1
    • Documentation

This function is called if the OASQLIP_get_stmt_info function reports that the statement has more results. If the statement has more results pending, then it moves to the next result. A call to OASQLIP_get_numcols after calling this function returns the description of this new cursor.

int OASQLIP_open_next_cursor(
SQLIP_HSTMT sqlip_hstmt, 
OADS_LEN * piNumResRows)

Parameters for OASQLIP_open_next_cursor

Parameter Type Description
INPUT    
sqlip_hstmt SQLIP_HSTMT Statement handle.
OUTPUT    
piNumResRows OADS_LEN * Number of rows in the cursor or the number of rows affected for data modifying query. If the statement results in a cursor and the number of rows in the cursor cannot be determined, then return –1.
RETURN    
  int OADS_SUCCESS
OADS_NO_DATA – no more result sets available
OADS_ERROR – error opening next cursor

See also

TitleResults for “How to create a CRG?”Also Available inAlert