Inspectopedia
 
2024.3

Unreachable code

Warning
Last modified: 03 December 2024

Reports unreachable statements inside SQL routines.

Example (Microsoft SQL Server):

In Microsoft SQL Server, the THROW statement raises an exception and transfers execution to the CATCH block of the TRY...CATCH construct. Therefore, the RETURN 1; part will never be executed.