This topic has not yet been rated - Rate this topic

CODBCFieldInfo Structure

The CODBCFieldInfo structure contains information about the fields in an ODBC data source.

struct CODBCFieldInfo
{
   CString m_strName;
   SWORD m_nSQLType;
   UDWORD m_nPrecision;
   SWORD m_nScale;
   SWORD m_nNullability;
};

Parameters

m_strName
The name of the field.
m_nSQLType
The SQL data type of the field. This can be an ODBC SQL data type or a driver-specific SQL data type. For a list of valid ODBC SQL data types, see "SQL Data Types" in the Platform SDK. For information about driver-specific SQL data types, see the driver's documentation.
m_nPrecision
The maximum precision of the field. For details, see "Precision, Scale, Length, and Display Size" in the Platform SDK.
m_nScale
The scale of the field. For details, see "Precision, Scale, Length, and Display Size" in the Platform SDK.
m_nNullability
Whether the field accepts a Null value. This can be one of two values: SQL_NULLABLE if the field accepts Null values, or SQL_NO_NULLS if the field does not accept Null values.

Remarks

To retrieve this information, call CRecordset::GetODBCFieldInfo.

See Also

Structures, Styles, Callbacks, and Message Maps | CRecordset::GetODBCFieldInfo | CRecordset::GetFieldValue

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.