title: troubleshooting "Operand type clash: datetime2 is incompatible with int" on restore
body: <p>I am trying to restore our DEV database to my local sql server.  I am getting this error during the restore:</p>
  
  <pre><code>Operand type clash: datetime2 is incompatible with int
  </code></pre>
  
  <p>I have several 'tenants' with the same structure and only one gives this problem.</p>
  
  <p>How can I get more details?
  I need to know where this is happening?  A procedure, trigger, index, which table, etc.</p>
  
  <p>The restore gets to 100%, then spins a while and gives this error.</p>
  
  <p>How do I get more information?</p>
  
  <p>fyi:  dev version is 13.0.5264.1 / local is 13.0.4001 </p>