sqlsrv_commit

sqlsrv_commit - Commits a transaction that was begun with sqlsrv_begin_transaction
Manual
Code Examples

sqlsrv_commit( resource$conn ): bool

Commits a transaction that was begun with sqlsrv_begin_transaction. The connection is returned to auto-commit mode after sqlsrv_commit is called. The transaction that is committed includes all statements that were executed after the call to sqlsrv_begin_transaction. Explicit transactions should be started and committed or rolled back using these functions instead of executing SQL statements that begin and commit/roll back transactions. For more information, see SQLSRV Transactions.

Parameters

conn

The connection on which the transaction is to be committed.

Return Values

Returns true on success or false on failure.

Related Functions

Example of sqlsrv_commit

Show all examples for sqlsrv_commit

PHP Version: