CDataSource Class

Corresponds to an OLE DB data source object, which represents a connection through a provider to a data source.

class CDataSource

Remarks

One or more database sessions can be created for a single connection. These sessions are represented by CSession. You must call CDataSource::Open to open the connection before creating a session with CSession::Open.

For an example of how to use CDataSource, see the CatDB sample.

Requirements

Header: atldbcli.h

See Also

Concepts

CDataSource Members

OLE DB Consumer Templates (C++)

OLE DB Consumer Templates Reference