COSession Class Members

  1. Data Member
    m_pIOpenRowset    Indicates if a TSession object is available.
       
  2. Construction/Destruction
    COSession:    Constructs a COSession object and initializes its member m_pIOpenRowset to NULL.
    ~COSession:    Destructs a COSession object and releases its member m_pIOpenRowset if it is pointing to a session.
  3. Methods
    Open:    Opens a session from a data source.
    Close:    Releases its member interface m_pIOpenRowset.
    BeginTrans:    Starts a manual transaction.
    Commit:    Commits a manual transaction.
    Rollback:    Aborts a manual transaction.
    ExecuteSQL:    Sends a simple statement to a data source.
    GetDataSource:    Gets a data source which opened this session.

  4. Attributes
    IsOpen:    Checks if a COSession object is wired with a session object.
    GetRefGuid:    Returns a reference to DBGUID_SESSION.
    GetBaseIID:    Gets a reference to IID_IOpenRowset.
    GetBaseInterfacePPtr:    Gets the address of m_pIOpenRowset.
    PostProcess:    Always returns true.

COSession Class Overview