dam_describeCol
- Last Updated: May 12, 2026
- 1 minute read
- OpenAccess SDK
- Version 8.1
- Documentation
This method is used to retrieve the description of the specified column. You must set up string buffers of at least DAM_MAX_ID_LEN+1 for the identifier names returned by this method. Pass in NULL for any attributes you do not want.
The attributes for controlling how the column is used in the query are returned as a bitwise OR (|) of the column attributes. You must implement the IP to perform a bitwise AND (&) of the output with the column type (DAM_COL_IN_COND) to check for all the ways the column is used.
void dam_describeCol(
int64 hcol,
out int piColNum,
StringBuilder pColName,
out int piXOType,
out int piColType)
Parameters for dam_describeCol
| Parameter | Type | Description |
| IN | ||
| hcol | int64 | The column handle |
| OUT | ||
| piColNum | int | The column number as defined in the schema database. |
| pColName | StringBuilder | The column name. Create and pass in a StringBuilder of DAM_MAX_ID_LEN+1. |
| piXOType | int | The data type (see Table 33). |
| piColType | int | How the column appears in the query is specified by the setting of one or more of the following flags: DAM_COL_IN_SCHEMA – column is defined in the schema database. This flag applies to all columns. DAM_COL_IN_RESULT – column is part of the select list. DAM_COL_IN_CONDITION – column is part of the where clause. DAM_COL_IN_UPDATE_VAL_EXP – column is part of an update value expression. |