CDynamicAccessor::SetBlobSizeLimit

Sets the maximum BLOB size in bytes.

void SetBlobSizeLimit(
   DBLENGTH nBlobSize 
);

Parameters

  • nBlobSize
    Specifies the BLOB size limit.

Remarks

Sets the maximum BLOB size in bytes; column data larger than this value is treated as a BLOB. Some providers give extremely large sizes for columns (such as 2 GB). Rather than attempting to allocate memory for a column this size, you would typically try to bind these columns as BLOBs. In that way you don't have to allocate all the memory, but you can still read all the data without fear of truncation. However, there are some cases in which you might want to force CDynamicAccessor to bind large columns in their native data types. To do this, call SetBlobSizeLimit before calling Open.

The constructor method CDynamicAccessor sets the maximum BLOB size to a default value of 8,000 bytes.

Requirements

Header: atldbcli.h

See Also

Concepts

CDynamicAccessor Class

CDynamicAccessor Members