MFC supports two different kinds of database access:
Both of these supply abstractions that simplify working with databases, complete with the speed, power, and flexibility of C++. Both types of access integrate your data access work with the MFC application framework.
Note You cannot use Data View to work with data sources that you specify using the MFC DAO or the MFC ODBC classes. These are C++ classes and Data View works directly with SQL.
The following topics explain the differences between DAO and ODBC and provide information to help you choose which kind of data access to use: