CRecordset::GetODBCFieldInfo
Visual Studio 2008
Obtains information about the fields in the recordset.
void GetODBCFieldInfo( LPCTSTR lpszName, CODBCFieldInfo& fieldinfo ); void GetODBCFieldInfo( short nIndex, CODBCFieldInfo& fieldinfo );
One version of the function lets you look up a field by name. The other version lets you look up a field by index.
For a description about the information returned, see the CODBCFieldInfo structure.
For more information about creating recordsets, see the article Recordset: Creating and Closing Recordsets (ODBC).