Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

SQL.Rollback

Cancels any changes made during the current transaction and ends the transaction.

Component Version macOS Windows Linux Server iOS SDK
SQL 2.6 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "SQL.Rollback"; Connection )   More

Parameters

Parameter Description Example
Connection The connection reference number gained with SQL.NewConnection. $Connection

Result

Returns "OK" or error message.

Description

Cancels any changes made during the current transaction and ends the transaction.
Rollback method rolls back the database to the state it was in at the completion of the last commit operation. All uncommitted work is undone.
Rollback method rolls back the work of all commands that associated with that connection.
To commit all changes made since the start of the transaction use SQL.Commit method.

See also

Example Databases

Blog Entries

This function is free to use.

Created 18th August 2014, last changed 18th August 2014


SQL.ResetConnection - SQL.RowsAffected