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.

When a connection is private, SQL.TXN.ISOLATION lets the application define the<br />

default transaction isolation level at which to execute server operations. To determine<br />

what isolation levels the data source supports, use the<br />

SQL.TXN.ISOLATION.OPTION option of the SQLGetInfo function. This returns<br />

a bitmap of the options the data source supports. The application can then use the<br />

<strong>UniBasic</strong> BIT functions to determine whether a particular bit is set in the bitmap.<br />

Use SQLSetConnectOption with the SQL.TXN.ISOLATION option only in the<br />

following two places:<br />

Immediately following an SQLConnect function call<br />

Immediately following an SQLTransact call to commit or roll back an<br />

operation<br />

Whenever you execute an SQL statement, a new transaction exists, which makes<br />

setting the SQL.TXN.ISOLATION option illegal. If a transaction is active when the<br />

SQL.TXN.ISOLATION.OPTION is set, UniData BCI returns SQL.ERROR and sets<br />

SQLSTATE to S1C00.<br />

SQLSetConnectOption 1-849

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

Saved successfully!

Ooh no, something went wrong!