title: Check Constraints in SQL
body: <p>I want not to allow my DB user to enter bigger dates than <code>2017-03-18</code>.  How can add this constraint to my table?
  Is this Correct? </p>
  
  <pre><code>(Year([ContractEnd])&lt;2017) and (Month([ContractEnd])&lt;03) and (Day([ContractEnd])&lt;18)
  </code></pre>