SQL_FetchSize Function

Returns the length of a field's data in the current row of a result set. This only needs to be called for strings to determine how many bytes to use. Note that the return value does not include the null terminator.

int SQL_FetchSize(Handle query, int field)

Parameters

Handle query

A query (or statement) Handle.

int field

The field index (starting from 0).

Return Value

Number of bytes for the field's data size.

Errors

Invalid query Handle or field index or no current result set.