title: T-SQL, Dynamic WHERE 0=0
body: <p>So hi there.</p>
  
  <p>In my company we do a lot of reporting which needs a lot of filters and such to create dynamic queries.</p>
  
  <p>This leads to us often needing to make chunks of T-SQL which may or may not have any restrictions, and its been practice here for a long time to get around this by using: -</p>
  
  <pre><code>    WHERE 0=0
      --insert restrictions after this
  </code></pre>
  
  <p>The reason? That way your always able to just plop your and/or on to the restriction without worrying if its actually the first thing to have been added and whether or not you need to put the and/or.</p>
  
  <p>Long and short of the question - just how is this performance wise? Bad practice or generally accepted way of doing this?</p>