다음을 통해 공유


CSession 클래스

Represents a single database access session.

class CSession

멤버

메서드

중단

Cancels (terminates) the transaction.

닫기

Closes the session.

커밋

트랜잭션을 커밋합니다.

GetTransactionInfo

Returns information regarding a transaction.

를 엽니다.

Opens a new session for the data source object.

StartTransaction

Begins a new transaction for this session.

설명

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 소비자 템플릿(C++)

OLE DB 소비자 템플릿 참조