| title |
CSession Class | Microsoft Docs |
| ms.custom |
|
| ms.date |
11/04/2016 |
| ms.reviewer |
|
| ms.suite |
|
| ms.technology |
|
| ms.tgt_pltfrm |
|
| ms.topic |
article |
| f1_keywords |
CSession |
ATL::CSession |
ATL.CSession |
|
| dev_langs |
|
| helpviewer_keywords |
|
| 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 |
|
Represents a single database access session.
|
|
| 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.
Header: atldbcli.h
CatDB
OLE DB Consumer Templates
OLE DB Consumer Templates Reference