The SQL_DESC_TD_UDT_INDICATOR descriptor record field contains UDT Indicator of the column. When the column is defined as UDT, then the SQL_DESC_TD_UDT_INDICATOR describes type of the UDT defined. When the column is defined as a non-UDT, then the SQL_DESC_TD_UDT_INDICATOR will always have a value zero. The value of SQL_DESC_TD_UDT_INDICATOR descriptor field are exposed in the header file tdsql.h.
When extended statement information is not available, the value of the SQL_DESC_TD_UDT_INDICATOR descriptor field will always be zero.
With extended statement information available, the value of the SQL_DESC_TD_UDT_INDICATOR descriptor field will have one of the UDT Indicator values from the following table based on the column definition.
UDT Indicator Value |
Definition |
Description |
1 |
SQL_TD_UDT_STRUCTURED |
Structured UDT |
2 |
SQL_TD_UDT_DISTINCT |
Distinct UDT |
3 |
SQL_TD_UDT_INTERNAL |
Internal UDT |
0 |
SQL_TD_UDT_BASE |
For all other data types |