Skip to content

Latest commit

 

History

History
51 lines (42 loc) · 2.07 KB

commit-work-transact-sql.md

File metadata and controls

51 lines (42 loc) · 2.07 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
COMMIT WORK (Transact-SQL)
COMMIT WORK (Transact-SQL)
markingmyname
maghan
06/10/2016
sql
t-sql
reference
COMMIT_WORK_TSQL
WORK_TSQL
WORK
COMMIT WORK
ending transactions [SQL Server]
transactions [SQL Server], ending
marking end of transactions [SQL Server]
COMMIT WORK statement
TSQL

COMMIT WORK (Transact-SQL)

[!INCLUDE SQL Server Azure SQL Database Azure SQL Managed Instance]

Marks the end of a transaction.

:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions

Syntax

COMMIT [ WORK ]  
[ ; ]  

[!INCLUDEsql-server-tsql-previous-offline-documentation]

Remarks

This statement functions identically to COMMIT TRANSACTION, except COMMIT TRANSACTION accepts a user-defined transaction name. This COMMIT syntax, with or without specifying the optional keyword WORK, is compatible with SQL-92.

See Also

BEGIN DISTRIBUTED TRANSACTION (Transact-SQL)
BEGIN TRANSACTION (Transact-SQL)
COMMIT TRANSACTION (Transact-SQL)
ROLLBACK TRANSACTION (Transact-SQL)
ROLLBACK WORK (Transact-SQL)
SAVE TRANSACTION (Transact-SQL)
@@TRANCOUNT (Transact-SQL)