I want to get information through SQL query for any database in SQL Server 2016
whether it is already set to be memory optimized or not. I know following query
SELECT DatabasePropertyEx('DATABASENAME', 'IsXTPSupported');
tells you that whether you can set (by setting the Memory Optimized Data file Group) the database to have in memory tables or not. But I want to know that whether db is already set to contain in memory table or not i.e. its Memory Optimized Data File Group have been already set or not?
How I can achieve this through SQL Query for any given database?
Googling the title of your question I found this: https://msdn.microsoft.com/en-CA/library/dn232522.aspx