begin transaction (T-SQL only)

Description

Marks the starting point of a user-defined transaction.

Syntax

begin tran[saction][transaction_name]

Parameters

transaction_name

is the name assigned to the transaction. It must conform to the rules for identifiers. Use transaction names only on the outermost pair of nested begin transaction/commit or begin transaction/rollback statements.

Examples

Example 1

begin transaction

Usage