Script functions reference > Script functions in alphabetical order > O > OdbcCommitTrans

OdbcCommitTrans
Syntax
ODBCCommitTrans(str_dbidentifier);
str_dbidentifier
Description
Commits a transaction that you have opened with ODBCBeginTrans. The changes within the transaction are saved to the database and the transaction is ended.
Note:
This function cannot be run in the preprocessing phase, and must therefore be inside an if (preproc() == 0) { } block.
Returns
1
-1
Example
if (preproc() == 0)
{
...
ODBCCommitTrans("my_identifier");
...
}
OpenText StreamServe 5.6.2 Updated: 2018-01-26