Once language commands have been entered in the buffer, they can be sent to a server for execution.
dbsqlsend – sends the contents of the command buffer to a server for execution. Unlike dbsqlexec, this routine does not wait for a response from the server. When dbsqlsend returns SUCCEED, dbsqlok must be called to verify the correctness of the command batch.
dbpoll – when called between dbsqlsend (or dbrpcsend) and dbsqlok, checks if a server response has arrived for a DBPROCESS.
dbsqlok – waits for results from the server and verifies the correctness of the instructions the server is responding to. This routine is used in conjunction with dbsqlsend, dbrpcsend, and dbmoretext. After a successful dbsqlok call, the application must call dbresults to process the results.
dbsqlexec – sends the contents of the command buffer to a server for execution. Once dbsqlexec has returned SUCCEED, dbresults must be called to process the results. Calling dbsqlexec is equivalent to calling dbsqlsend followed by dbsqlok.