CDynamicAccessor Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at 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  

Methods

AddBindEntryAdds a bind entry to the output columns when overriding the default accessor.
CDynamicAccessorInstantiates and initializes the CDynamicAccessor object.
CloseUnbinds all the columns, releases the allocated memory, and releases the IAccessor interface pointer in the class.
GetBookmarkRetrieves the bookmark for the current row.
GetBlobHandlingRetrieves the BLOB handling value for the current row.
GetBlobSizeLimitRetrieves the maximum BLOB size in bytes.
GetColumnCountRetrieves the number of columns in the rowset.
GetColumnFlagsRetrieves the column characteristics.
GetColumnInfoRetrieves the column metadata.
GetColumnNameRetrieves the name of a specified column.
GetColumnTypeRetrieves the data type of a specified column.
GetLengthRetrieves the maximum possible length of a column in bytes.
GetOrdinalRetrieves the column index given a column name.
GetStatusRetrieves the status of a specified column.
GetValueRetrieves the data from the buffer.
SetBlobHandlingSets the BLOB handling value for the current row.
SetBlobSizeLimitSets the maximum BLOB size in bytes.
SetLengthSets the length of the column in bytes.
SetStatusSets the status of a specified column.
SetValueStores the data to the buffer.

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.

Header: atldbcli.h

OLE DB Consumer Templates
OLE DB Consumer Templates Reference
CAccessor Class
CDynamicParameterAccessor Class
CManualAccessor Class

Show: