Skip to content

Commit b551a63

Browse files
addressing sql-docs issue 4221
1 parent 4fd9eb7 commit b551a63

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/t-sql/language-elements/try-catch-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ END CATCH
6464

6565
A TRY...CATCH construct cannot span multiple batches. A TRY...CATCH construct cannot span multiple blocks of [!INCLUDE[tsql](../../includes/tsql-md.md)] statements. For example, a TRY...CATCH construct cannot span two BEGIN...END blocks of [!INCLUDE[tsql](../../includes/tsql-md.md)] statements and cannot span an IF...ELSE construct.
6666

67-
If there are no errors in the code that is enclosed in a TRY block, when the last statement in the TRY block has finished running, control passes to the statement immediately after the associated END CATCH statement. If there is an error in the code that is enclosed in a TRY block, control passes to the first statement in the associated CATCH block. If the END CATCH statement is the last statement in a stored procedure or trigger, control is passed back to the statement that called the stored procedure or fired the trigger.
67+
If there are no errors in the code that is enclosed in a TRY block, when the last statement in the TRY block has finished running, control passes to the statement immediately after the associated END CATCH statement. If there is an error in the code that is enclosed in a TRY block, control passes to the first statement in the associated CATCH block.
6868

6969
When the code in the CATCH block finishes, control passes to the statement immediately after the END CATCH statement. Errors trapped by a CATCH block are not returned to the calling application. If any part of the error information must be returned to the application, the code in the CATCH block must do so by using mechanisms such as SELECT result sets or the RAISERROR and PRINT statements.
7070

0 commit comments

Comments
 (0)