CDaoRecordset::m_pDatabase

Remarks

Contains a pointer to the CDaoDatabase object through which the recordset is connected to a data source. This variable is set in two ways. Typically, you pass a pointer to an already open CDaoDatabase object when you construct the recordset object. If you pass NULL instead, CDaoRecordset creates a CDaoDatabase object for you and opens it. In either case, CDaoRecordset stores the pointer in this variable.

Normally you will not directly need to use the pointer stored in m_pDatabase. If you write your own extensions to CDaoRecordset, however, you might need to use the pointer. For example, you might need the pointer if you throw your own CDaoException(s).

For more information about accessing underlying DAO objects, see the article DAO Collections: Obtaining Information About DAO Objects in Visual C++ Programmer's Guide. For related information, see the topic "Database Object" in DAO Help.

CDaoRecordset OverviewClass MembersHierarchy Chart

See Also   CDaoRecordset::m_pDAORecordset