Clears rows from the row buffer.
void dbclrbuf (
PDBPROCESS dbproc,
DBINT n );
You can turn row buffering on by calling dbsetopt (dbproc, DBBUFFER, n), where n is the number of rows you would like DB-Library to buffer. DB-Library for C can buffer rows as they are returned from SQL Server. If buffering is on, you can refer to buffered rows that have been read from SQL Server using dbgetrow.
The row buffer can become full if SQL Server returns more than the n rows that you said you wanted buffered. The row buffer is full when dbnextrow returns BUF_FULL. After the row buffer is full, dbnextrow continues to return BUF_FULL until at least one row is freed by calling dbclrbuf. The dbclrbuf function frees the oldest n rows in the buffer.
dbgetrow | dbnextrow |
DB-Library Options | dbsetopt |