CDynamicAccessor Class

Allows you to access a data source when you have no knowledge of the database schema (the database's underlying structure).

class CDynamicAccessor : public CAccessorBase

Remarks

Use CDynamicAccessor methods to obtain column information such as column names, column count, data type, and so on. You then use this column information to create an accessor dynamically at run time.

The column information is stored in a buffer that is created and managed by this class. Obtain data from the buffer using GetValue.

For a discussion and examples of using the dynamic accessor classes, see Using Dynamic Accessors.

Requirements

Header: atldbcli.h

See Also

Reference

CAccessor Class

CDynamicParameterAccessor Class

CManualAccessor Class

Concepts

OLE DB Consumer Templates (C++)

OLE DB Consumer Templates Reference

Other Resources

CDynamicAccessor Members