Script functions reference > Script functions in alphabetical order > O

O
OdbcBeginTrans
Syntax
ODBCBeginTrans(str_dbidentifier);
str_dbidentifier
Description
Begins a new transaction, which opens these possibilities:
To commit the transaction, call the ODBCCommitTrans function.
To end the transaction, call the ODBCRollbackTrans function.
No new function is called and the transaction is automatically rolled back, for example, if the connection times out or is lost.
Note:
This function cannot be run in the preprocessing phase, and must therefore be inside an if (preproc() == 0) { } block.
Returns
N/A
Example
if (preproc() == 0)
{
...
ODBCBeginTrans("my_identifier");
...
}
OpenText StreamServe 5.6.2 Updated: 2018-01-26