title: Disable TSQL script check?
body: <p>lets say I have a script like that:</p>
  
  <p><em>if(some condition)
  begin
      select somecolumn from sometable
  end</em></p>
  
  <p>Lets say, that "somecolumn" does not exist and the condition is not true, which means the select is <strong>NOT</strong> executed. Even though the select would not be executed, the script is not valid, Management Studio complains about the missing column "somecolumn". </p>
  
  <p>Question: Can I somehow disable this sort of check so that the script is executed and since the if is not true, it will never notice that the column is missing?</p>
  
  <p>Thanks :-)</p>