11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SQLDisconnect<br />

Syntax<br />

status = SQLDisconnect (connect.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 />

SQLDisconnect disconnects a connection environment from a data source.<br />

You cannot use SQLDisconnect within a transaction. An SQLDisconnect call<br />

issued within a transaction returns SQL.ERROR, and sets SQLSTATE to 25000. You<br />

must commit or abort active transactions before disconnecting, and you must be in<br />

autocommit mode. If there is no active transaction, SQLDisconnect frees all SQL<br />

statement environments owned by this connection before disconnecting.<br />

SQLDisconnect returns SQL.SUCCESS.WITH.INFO if an error occurs but the<br />

disconnect succeeds.<br />

Parameters<br />

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

Parameter Description<br />

connect.env Connection environment.<br />

SQLDisconnect Input Variable<br />

SQLDisconnect 1-805

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

Saved successfully!

Ooh no, something went wrong!