Skip to content

Latest commit

 

History

History
70 lines (62 loc) · 2.08 KB

File metadata and controls

70 lines (62 loc) · 2.08 KB
title CSession Class | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
f1_keywords
CSession
ATL::CSession
ATL.CSession
dev_langs
C++
helpviewer_keywords
CSession class
ms.assetid 83cd798f-b45d-4f11-a23c-29183390450c
caps.latest.revision 13
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

CSession Class

Represents a single database access session.

Syntax

class CSession  

Members

Methods

Abort Cancels (terminates) the transaction.
Close Closes the session.
Commit Commits the transaction.
GetTransactionInfo Returns information regarding a transaction.
Open Opens a new session for the data source object.
StartTransaction Begins a new transaction for this session.

Remarks

One or more sessions can be associated with each provider connection (data source), which is represented by a CDataSource object. To create a new CSession for a CDataSource, call CSession::Open. To begin a database transaction, CSession provides the StartTransaction method. Once a transaction is started, you can commit to it using the Commit method, or cancel it using the Abort method.

Requirements

Header: atldbcli.h

See Also

CatDB
OLE DB Consumer Templates
OLE DB Consumer Templates Reference