Clears the command buffer.
void dbfreebuf ( PDBPROCESS dbproc );
This function frees any space allocated to the command buffer of the DBPROCESS structure. The command buffer is then set to NULL. Commands for SQL Server are added to the command buffer with the dbcmd or dbfcmd function.
After a call to dbsqlexec or dbsqlsend, the first call to either dbcmd or dbfcmd automatically calls dbfreebuf to clear the command buffer before the new text is entered. If this situation is undesirable, set the DBNOAUTOFREE option. When DBNOAUTOFREE is set, the command buffer is cleared only by a call to dbfreebuf.
The contents of the command buffer can be accessed through the dbgetchar, dbstrlen, and dbstrcpy functions.
Bulk-Copy Functions | dbsqlexec |
dbcmd | dbsqlsend |
dbfcmd | dbstrcpy |
dbgetchar | dbstrlen |
DB-Library Options |