We recommend using Visual Studio 2017

OLE DB Programming


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at OLE DB Programming.

This home page is your starting point for information about the Microsoft OLE DB database technology and the OLE DB Template Library.

It is important to know that Microsoft provides several implementations of OLE DB. OLE DB is a set of COM interfaces that provide uniform access to data in diverse information sources and formats.

The OLE DB templates are C++ templates that make the high-performance OLE DB database technology easier to use by providing classes that implement many commonly used OLE DB interfaces. This template library is divided into consumer templates and provider templates.

Visual C++ also has wizard support for creating OLE DB starter applications.

In addition, you can use attributes to implement the OLE DB consumer templates.

To learn more aboutSee
Using the OLE DB consumer templates (conceptual topics)OLE DB Consumer Templates
Using the OLE DB provider templates (conceptual topics)OLE DB Provider Templates
OLE DB templates classes and macrosOLE DB Templates Reference (Visual C++)
OLE DB consumer attributesOLE DB Consumer Attributes
OLE DB interfacesOLE DB programmer's reference (in the Windows SDK)
OLE DB templates samplesOLE DB Templates Samples
Data access programming overview (Visual C++)Data Access Programming
ODBC vs. DAOShould I Use DAO or ODBC?
ODBC conceptual topicsOpen Database Connectivity (ODBC)
Data-bound controls (ADO and RDO) conceptual topicsData-Bound Controls (ADO and RDO)

Data Access