--- description: "Learn more about: DAO Classes" title: "DAO Classes" ms.date: "09/17/2019" helpviewer_keywords: ["database classes [MFC], DAO", "DAO [MFC], classes"] ms.assetid: b15d0cd6-328b-4288-9c19-d037a795db57 --- # DAO Classes DAO is used with Access databases and is supported through Office 2013. DAO 3.6 is the final version, and it is considered obsolete. These classes work with the other application framework classes to give easy access to Data Access Object (DAO) databases, which use the same database engine as Microsoft Visual Basic and Microsoft Access. The DAO classes can also access a wide variety of databases for which Open Database Connectivity (ODBC) drivers are available. Programs that use DAO databases will have at least a `CDaoDatabase` object and a `CDaoRecordset` object. > [!NOTE] > The Visual C++ environment and wizards no longer support DAO (although the DAO classes are included and you can still use them). Microsoft recommends that you use ODBC for new MFC projects. You should only use DAO in maintaining existing applications. [CDaoWorkspace](reference/cdaoworkspace-class.md)
Manages a named, password-protected database session from login to logoff. Most programs use the default workspace. [CDaoDatabase](reference/cdaodatabase-class.md)
A connection to a database through which you can operate on the data. [CDaoRecordset](reference/cdaorecordset-class.md)
Represents a set of records selected from a data source. [CDaoRecordView](reference/cdaorecordview-class.md)
A view that displays database records in controls. [CDaoQueryDef](reference/cdaoquerydef-class.md)
Represents a query definition, usually one saved in a database. [CDaoTableDef](reference/cdaotabledef-class.md)
Represents the stored definition of a base table or an attached table. [CDaoException](reference/cdaoexception-class.md)
Represents an exception condition arising from the DAO classes. [CDaoFieldExchange](reference/cdaofieldexchange-class.md)
Supports the DAO record field exchange (DFX) routines used by the DAO database classes. You will normally not directly use this class. ## Related Classes [CLongBinary](reference/clongbinary-class.md)
Encapsulates a handle to storage for a binary large object (BLOB), such as a bitmap. `CLongBinary` objects are used to manage large data objects stored in database tables. [COleCurrency](reference/colecurrency-class.md)
Wrapper for the OLE automation type **CURRENCY**, a fixed-point arithmetic type, with 15 digits before the decimal point and 4 digits after. [COleDateTime](../atl-mfc-shared/reference/coledatetime-class.md)
Wrapper for the OLE automation type **DATE**. Represents date and time values. [COleVariant](reference/colevariant-class.md)
Wrapper for the OLE automation type **VARIANT**. Data in **VARIANT**s can be stored in many formats. ## See also [Class Overview](class-library-overview.md)