Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5   10.6    Statistic    FMM    Blog  

SQL.SetAutoCommit

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

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

Parameters

Parameter Description Example
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

FileMaker Magazin

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


SQL.ServerVersionString   -   SQL.SetClient

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins

Start Chat