title: Error : "Cannot continue the execution because the session is in the kill state " when history table is enabled
body: <p>We enabled temporal data (system-versioning history for table) on SQL Server 2017 but when we execute a delete command like below get an error message</p>
  
  <blockquote>
    <p>Cannot continue the execution because the session is in the kill state </p>
  </blockquote>
  
  <pre><code>delete kelakets where id=5
  </code></pre>
  
  <p>but when we disable the history table for main table and related tables, then execute the delete command it works perfect and nicely.</p>
  
  <p>Disable history command: </p>
  
  <pre><code>ALTER TABLE Kelakets SET (SYSTEM_VERSIONING = OFF);
  ALTER TABLE tableRelated1 SET (SYSTEM_VERSIONING = OFF);
  ALTER TABLE tableRelated2 SET (SYSTEM_VERSIONING = OFF);
  </code></pre>