Share via


CRecordset::m_hstmt

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

Remarks

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

Warning

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.

Requirements

Header: afxdb.h

See Also

Reference

CRecordset Class

Hierarchy Chart

CDatabase::ExecuteSQL

Other Resources

CRecordset Members