This documentation is archived and is not being maintained.

BREAK (Transact-SQL)

Exits the innermost loop in a WHILE or IF…ELSE statement. Any statements appearing after the END keyword, marking the end of the loop, are executed. BREAK is frequently, but not always, started by an IF test.

Show: