BEGIN...END Block

Encloses a series of SQL statements so that control-of-flow language, such as IF...ELSE, affects the performance of a group of statements instead of only the statement that immediately follows IF...ELSE. BEGIN...END blocks can be nested.

Syntax

BEGIN
    {sql_statement | statement_block}
END

where

sql_statement | statement_block
Is any valid grouping of Transact-SQL statements. Although all SQL statements are valid within a BEGIN...END block, certain SQL statements should not be grouped together within the same block (or batch). For details, see the Batches topic and the individual statements you're using.