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
Cannot continue the execution because the session is in the kill state
delete kelakets where id=5
but when we disable the history table for main table and related tables, then execute the delete command it works perfect and nicely.
Disable history command:
ALTER TABLE Kelakets SET (SYSTEM_VERSIONING = OFF);
ALTER TABLE tableRelated1 SET (SYSTEM_VERSIONING = OFF);
ALTER TABLE tableRelated2 SET (SYSTEM_VERSIONING = OFF);