Skip to content

Latest commit

 

History

History
59 lines (51 loc) · 2.72 KB

File metadata and controls

59 lines (51 loc) · 2.72 KB
title ATL Database Classes (OLE DB Templates) | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
dev_langs
C++
helpviewer_keywords
OLE DB templates [C++], ATL database classes
database classes [C++], OLE DB
database classes [C++], ATL
ms.assetid 219766aa-e18a-405f-9e36-d7a0fdb31b2b
caps.latest.revision 14
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

ATL Database Classes (OLE DB Templates)

Microsoft provides several implementations of OLE DB, a set of COM interfaces that provide uniform access to data in diverse information sources and formats. OLE DB is officially deprecated; this documentation is for developers who are maintaining legacy code. New applications should use ODBC to connect to SQL data sources.

The OLE DB Templates are C++ templates in ATL that make OLE DB database technology easier to use by providing classes that implement many of the commonly used OLE DB interfaces.

This template library contains two parts:

In addition, the OLE DB consumer attributes provide a convenient way to create OLE DB consumers. The OLE DB attributes inject code based on the OLE DB consumer templates to create working OLE DB consumers.

Note that the MFC library contains one class, COleDBRecordView, that displays database records in controls. The view is a form view directly connected to a CRowset object, and displays the fields of the CRowset object in the dialog template's controls.

For more information, see OLE DB Programming and OLE DB Programmer's Guide.

See Also

Creating an OLE DB Consumer
Creating an OLE DB Provider
OLE DB Consumer Templates Reference
OLE DB Provider Templates Reference
OLE DB Templates Samples