Any statement in a Transact-SQL procedure, trigger, or batch can be labeled. The label name is a valid identifier followed
by a colon. In the GOTO statement, the colon is not used.
If you nest compound statements, you can only go to (GOTO) labels within the current compound statement and any of its ancestor
compound statements. You cannot go to labels located in other compound statements that are nested within the ancestors.