This documentation is archived and is not being maintained.


Contains a handle to the ODBC statement data structure, of type HSTMT, associated with the recordset.

Each query to an ODBC data source is associated with an HSTMT.

Caution note Caution

Do not use m_hstmt before Open has been called.

Normally you do not need to access the HSTMT directly, but you might need it for direct execution of SQL statements. The ExecuteSQL member function of class CDatabase provides an example of using m_hstmt.

Header: afxdb.h