Articles → SQL SERVER → Set Noexec Statement In SQL Server
Set Noexec Statement In SQL Server
Purpose
Example
Set noexec on
-- This query will not execute as noexec is set to "On"
select top 5 * from sys.procedures
Set noexec off
-- This query will execute as noexec is set to "Off"
select top 5 * from sys.objects
Output