Create table with Memory_Optimized=true

hari prasad 6 Reputation points

Msg 596, Level 21, State 1, Line 4
Cannot continue the execution because the session is in the kill state.
Msg 0, Level 20, State 0, Line 4
A severe error occurred on the current command.  The results, if any, should be discarded.

Getting below error while creating the table ...Please suggest me to achieve the requirement

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,676 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Bjoern Peters 8,781 Reputation points

    Hi Hari

    Welcome to Q&A Forum, this is a great place to get support, answers and tips.

    Thank you for posting your query, I'll be more than glad to help you out.

    Mayb it is because someone killed your session as the error message suggests?

    Cannot continue the execution because the session is in the kill state.

    Seems someone wether killed your session or sql server engine was shutting down during your execution of the create statement.

    Have you tried again? Do you received the same or a different message?

    To support your question in a better way it might be helpful to see the complete statement which you executed... so please sent the DDL statement which you tried to execute.

    Thank you.

    I hope my answer is helpful to you,


    Bjoern Peters

    If the reply was helpful, please upvote and/or accept it as an answer, as this helps others in the community with similar questions. Thanks!

    0 comments No comments

  2. Seeya Xi-MSFT 16,436 Reputation points

    Hi @hari prasad,

    You can check for syntax errors.

    Also, you can check the methods of troubleshooting in this thread.

    Best regards,


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments