Powered by Zoomin Software. For more details please contactZoomin

DataDirect OpenAccess SDK Help

ipDDL

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

You must implement this method in your IP if it is to handle the DDL SQL syntax for creating tables, indexes, and other supported objects. The OpenAccess SDK SQL engine calls this method when it needs to create or delete an object (for example, a table). ipGetSupport should return true for the supported DDL operations.

int ipDDL(
    long   hstmt, 
    int    iType,
    xo_long piNumResRows)

Parameters for ipDDL

Parameter Type Description
INPUT
hstmt long The statement handle of the currently active statement.
iType int Type of object management requested:
  • DAM_CREATE_TABLE - create a table.
  • DAM_DROP_TABLE - drop a table.
  • DAM_CREATE_INDEX - create an index.
  • DAM_DROP_INDEX - drop an index.
  • piNumResRows xo_long Number of rows affected by this operation.
    RETURN
    int DAM_SUCCESS - on successDAM_FAILURE - on failure

    See also

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