Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5   8.6    Statistic  

SQL.SetAutoCommit

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

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
SQL 2.6 Yes Yes Yes Yes Yes
MBS( "SQL.SetAutoCommit"; Connection; AutoCommit )   More

Parameters

Parameter Description Example value
Connection The connection reference number gained with SQL.NewConnection. $Connection
AutoCommit Whether to turn auto commit on or off. Can be "On" or "Off". "On"

Result

Returns "OK" or error message.

Description

Enables or disables autocommit for the current connection, that is, automatic commit of every SQL command.
If autocommit is on, the database is committed automatically after each SQL command. Otherwise, transaction is committed only after Commit calling.

Examples

Turn auto commit off:

MBS( "SQL.SetAutoCommit"; $Connection; "off" )

See also

Created 18th August 2014, last changed 25th October 2018


SQL.ServerVersionString   -   SQL.SetClient

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins