0

I have two database. Primary have a DDL triggers so i can't create memory optimized tables there. So i created secondary database and create there table with memory optimized on. Now, in procedure on primary database i need insert copy data from other table to this optimized.

For example:

INSERT INTO InMemory.dbo.DestTable_InMem SELECT * FROM @T;

And i have:

A user transaction that accesses memory optimized tables or natively compiled modules cannot access more than one user database or databases model and msdb, and it cannot write to master.

Did exists some workarounds from it?

I cannot move my procedure to second database.

1 Answer 1

0

There is no other way than using a native procedure to INSERT, UPDATE or DELETE in an in-memory table.

See: A Guide to Query Processing for Memory-Optimized Tables

To move from one DB to the other, the source table must exists locally

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.