SET NOEXEC (TSQL Statement)

parses and compiles the batch, but doesn’t execute it.

Syntax

SET NOEXEC { ON | OFF }

Remarks

A batch is processed by RSQL as follows:

When the option NOEXEC is ON, the batch is parsed and compiled, but not executed.

This way, you can check if the batch has no syntax error without executing it.

RSQL, a simple alternative to Microsoft SQL Server