Home How To Online Documentation Support Download Order

 

 

 

SACommand
SAConnection
SAException
SAField
SAParam

SAString
SADateTime
SANumeric
SAInterval

Enums and Typedefs

  

Usage

Class Members

Examples

SAConnection::setAutoCommit

void setAutoCommit(SAAutoCommit_t eAutoCommit );
throw (SAException);

Enables or disables autocommit for the current connection, that is, automatic commit of every SQL command. 

Parameters

eAutoCommit.    One of the following values from SAAutoCommit_t enum:

  • SA_AutoCommitOff     Autocommit is off.
  • SA_AutoCommitOn    Autocommit is on.

Remarks

If autocommit is on, the database is committed automatically after each SQL command. Otherwise, transaction is committed only after Commit calling. 

To get current autocommit option state use AutoCommit method. 

Server specific notes

No specific information.

See also

AutoCommit, Commit 

SAAutoCommit_t

Error handling

Problems and Questions

If you haven't found the answer to your questions or have some problems on using the Library, please, send e-mail to howto@sqlapi.com.