UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

Parameters The following table describes each parameter of the syntax. Parameter Description Return Values The following table describes the return values of the SQLTransact function. 1-864 UniBasic Commands Reference bci.env UniData BCI environment. connect.env Connection environment or SQL.NULL.HDBC. type One of the following: SQL.COMMIT – Writes all modified data to the data source, releases all lock acquired by the current transaction, and terminates the transaction. SQL.ROLLBACK – Discards any changes written during the transaction and terminates it. SQLTransact Input Variables Return Value Description 0 SQL.SUCCESS –1 SQL.ERROR –2 SQL.INVALID.HANDLE SQLTransact Return Values

SQLSTATE Values The following table describes the SQLSTATE values for the SQLTransact function. SQLSTAT E Description S1000 General error for which no specific SQLSTATE code has been defined. S1001 Memory allocation failure. S1012 type did not contain SQL.COMMIT or SQL.ROLLBACK. 08003 No connection is active on connect.env. 08007 The connection associated with the transaction failed during the execution of the function. It cannot be determined if the requested operation completed before the failure. SQLSTATE Values SQLTransact 1-865

SQLSTATE Values<br />

The following table describes the SQLSTATE values for the SQLTransact function.<br />

SQLSTAT<br />

E Description<br />

S1000 General error for which no specific SQLSTATE code has been defined.<br />

S1001 Memory allocation failure.<br />

S1012 type did not contain SQL.COMMIT or SQL.ROLLBACK.<br />

08003 No connection is active on connect.env.<br />

08007 The connection associated with the transaction failed during the execution of<br />

the function. It cannot be determined if the requested operation completed<br />

before the failure.<br />

SQLSTATE Values<br />

SQLTransact 1-865

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

Saved successfully!

Ooh no, something went wrong!