CDynamicAccessor::SetBlobHandling
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::SetBlobHandling.
Sets the BLOB handling value for the current row.
Syntax
bool SetBlobHandling(
DBBLOBHANDLINGENUM eBlobHandling
);
Parameters
eBlobHandling
Specifies how the BLOB data is to be handled. It can take the following values:
DBBLOBHANDLING_DEFAULT: Handle column data larger than
nBlobSize
(as set bySetBlobSizeLimit
) as BLOB data and retrieve it through anISequentialStream
orIStream
object. This option will attempt to bind every column containing data larger thannBlobSize
or listed as DBTYPE_IUNKNOWN as BLOB data.DBBLOBHANDLING_NOSTREAMS: Handle column data larger than
nBlobSize
(as set bySetBlobSizeLimit
) as BLOB data and retrieve it through reference in provider-allocated, consumer-owned memory. This option is useful for tables that have more than one BLOB column, and the provider supports only oneISequentialStream
object per accessor.DBBLOBHANDLING_SKIP: Skip (do not bind) columns qualifying as containing BLOBs (the accessor will not bind or retrieve the column value but it will still retrieve the column status and length).
Remarks
You should call SetBlobHandling
before calling Open.
The constructor method CDynamicAccessor sets the BLOB handling value to DBBLOBHANDLING_DEFAULT.
Requirements
Header: atldbcli.h