TRY CATCH
Translation reference for TRY CATCH statement in SQL Server.
Description
Implements error handling for Transact SQL. A group of Transact-SQL statements can be enclosed in a TRY block. If an error occurs in the TRY block, control is usually passed to another group of statements that is enclosed in a CATCH block.
Sample Source Patterns
The following example details the transformation for TRY CATCH inside procedures.
SQL Server
IN -> SqlServer_01.sql
Snowflake SQL
OUT -> SqlServer_01.sql
Try catch outside routines (functions and procedures)
SQL Server
IN -> SqlServer_02.sql
Snowflake Scripting
OUT -> SqlServer_02.sql
Known Issues
No issues were found.
Related EWIs
Last updated