title | description | author | ms.author | ms.date | ms.service | ms.subservice | ms.topic |
---|---|---|---|---|---|---|---|
PDO::commit |
API reference for the PDO::commit function in the Microsoft PDO_SQLSRV Driver for PHP for SQL Server. |
David-Engel |
davidengel |
08/10/2020 |
sql |
connectivity |
reference |
[!INCLUDEDriver_PHP_Download]
Sends commands to the database that were issued after calling PDO::beginTransaction and returns the connection to auto commit mode.
bool PDO::commit();
true if the method call succeeded, false otherwise.
PDO::commit is not affected by (and does not affect) the value of PDO::ATTR_AUTOCOMMIT.
See PDO::beginTransaction for an example that uses PDO::commit.
Support for PDO was added in version 2.0 of the [!INCLUDEssDriverPHP].