A transaction treats a set of Transact-SQL statements as a unit. Either all statements in the group are executed or no statements are executed.