11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SQLFreeStmt<br />

Syntax<br />

status = SQLFreeStmt (statement.env, option)<br />

Note: This function is case-sensitive. If you want it to be case-insensitive, you<br />

must compile your programs using the BASIC command with the -i option.<br />

Description<br />

SQLFreeStmt frees some or all resources associated with an SQL statement<br />

environment.<br />

If your program uses the same SQL statement environment to execute different SQL<br />

statements, use SQLFreeStmt with the SQL.DROP option, then use SQLAllocStmt<br />

to reallocate a new SQL statement environment. This unbinds all bound columns and<br />

resets all parameter marker variables.<br />

It is good practice to issue SQLFreeStmt with the SQL.CLOSE option when all<br />

results have been read from the data source, even if the SQL statement environment<br />

will not be reused immediately for another SQL statement. Issuing SQLFreeStmt<br />

with the SQL.CLOSE option frees any locks that may be held at the data source.<br />

SQLFreeStmt 1-821

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!