Skip to content

Latest commit

 

History

History
68 lines (64 loc) · 3.11 KB

File metadata and controls

68 lines (64 loc) · 3.11 KB
title Session Object Interfaces | 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
session objects [OLE DB]
session objects [OLE DB], interfaces
OLE DB provider templates, object interfaces
interfaces, session object
interfaces, list of
ms.assetid ac01a958-6dde-4bd7-8b63-94459e488335
caps.latest.revision 7
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

Session Object Interfaces

The following table shows the mandatory and optional interfaces defined by OLE DB for a session object.

Interface Required? Implemented by OLE DB templates?
IGetDataSource Mandatory Yes
IOpenRowset Mandatory Yes
ISessionProperties Mandatory Yes
IAlterIndex Optional No
IAlterTable Optional No
IBindResource Optional No
ICreateRow Optional No
IDBCreateCommand Optional Yes
IDBSchemaRowset Optional Yes
IIndexDefinition Optional No
ISupportErrorInfo Optional Yes
ITableCreation Optional No
ITableDefinition Optional No
ITableDefinitionWithConstraints Optional No
ITransaction Optional No
ITransactionJoin Optional No
ITransactionLocal Optional No
ITransactionObject Optional No

The session object creates a rowset object. If the provider supports commands, the session also creates a command object (CCommand, implementing the OLE DB TCommand). The command object implements the ICommand interface and uses the ICommand::Execute method to execute commands on the rowset, as shown in the following figure.

Provider conceptual diagram

See Also

OLE DB Provider Template Architecture