Prevent Full Script Execution (Understanding and Using PARSEONLY and NOEXEC)

Have you ever needed to prevent an entire script (or part of one) from executing? See how the session-level options PARSEONLY and NOEXEC can accomplish this.