Поделиться через


CSession Class

Represents a single database access session.

class CSession

Заметки

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 Sample: Data Source Schema Browser

CSession Members

OLE DB Consumer Templates (C++)

OLE DB Consumer Templates Reference