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.

SQLCancel<br />

Syntax<br />

status = SQLCancel (statement.env)<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 />

This function is equivalent to the SQLFreeStmt call with the SQL.CLOSE option. It<br />

closes any open cursor associated with the SQL statement environment and discards<br />

pending results at the data source.<br />

It is good practice to issue SQLCancel when all results have been read from the data<br />

source, even if the SQL statement environment will not be reused immediately for<br />

another SQL statement. Issuing SQLCancel frees any locks that may be held at the<br />

data source.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

1-792 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

Input Variable Description<br />

statement.env SQL statement environment.<br />

SQLCancel Parameters

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

Saved successfully!

Ooh no, something went wrong!