Powered by Zoomin Software. For more details please contactZoomin

DataDirect OpenAccess SDK Help

dam_getColCount

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

This function is used to find out how many columns are in the various categories. This function can be called to retrieve the number of columns in any one category or in multiple categories. This function can quickly check whether columns of a specific type exist, and if so, how many.

int dam_getColCount(
    DAM_HSTMT  hstmt, 
    int        iColType, 
    int *      piColCount)

Parameters for dam_getColCount

Parameter Type Description
IN
hstmt DAM_HSTMT The statement handle.
iColType int Identifies the column type. Use a bitwise OR ( | ) of the following flags to scan through columns that are in multiple categories:
DAM_COL_IN_SCHEMA - list of all columns as defined in the schema database.
DAM_COL_IN_RESULT - list of columns that are part of the result set.
DAM_COL_IN_CONDITION - list of columns that are in the WHERE clause.
DAM_COL_IN_USE - list of columns that are either part of the result or are in the WHERE clause.
OUT
piColCount int * Number of columns of the specified iColType.
RETURN
int Status of the function execution:
DAM_SUCCESS - valid column count returned.
DAM_FAILURE - Error due to invalid iColType.
TitleResults for “How to create a CRG?”Also Available inAlert