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(
int64 hstmt,
int iType,
out long piNumResRows)

Parameters for ipDDL

Parameter Type Description
IN    
hstmt int64 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
  • OUT    
    piNumResRows long Number of rows affected by this operation.
    RETURN    
      int DAM_SUCCESS – on success
    DAM_FAILURE – on failure

    See also

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