Powered by Zoomin Software. For more details please contactZoomin

DataDirect OpenAccess SDK Help

dam_setOption

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

This method sets the options related to the operations of the OpenAccess SDK SQL engine. Options can be set at the connection, the statement, or the conditions list level. See Connection Options Values for dam_setOption, Statement Options for dam_setOption, and Condition List Options for dam_setOption for information about the options that you can set.

int dam_setOption(
    int  iOptionType, 
    long pObjectHandle,
    int  iOption,
    int  lOptionValue)

Parameters for dam_SetOption

Parameter Type Description
INPUT
iOptionType int The type of option:
  • DAM_CONN_OPTION
  • DAM_STMT_OPTION
  • DAM_CONDLIST_OPTION
  • pObjectHandle long The object handle to which the option applies. It can be one of the following object handles:
  • Connection handle.
  • Statement handle.
  • Condition list handle.
  • iOption int The option to set. See Connection Options Values for dam_setOption for more information about the option.
    iOptionValue int The value to set for the option iOption. See Connection Options Values for dam_setOption for the option.
    RETURN
    int The status of the method call
  • DAM_SUCCESS - option set.
  • DAM_FAILURE - error in setting the specified option for the specified object type.
  • TitleResults for “How to create a CRG?”Also Available inAlert