I have a table T1 that I created in-memory using the in-memory procedure in SQL Server 2016. Now, I want to create a copy of the same table T1 into another table T2 which should have the same schema i.e it should also be in-memory(should be memory optimized).
I know that for creating a copy of a table we use the following query:
SELECT * INTO T2 FROM T1
But when I use the above query, it creates a blank table T2 which is not in-memory i.e not memory optimized.
So, How do I create a copy of an existing in-memory table with the same schema and if possible same data.