如何确定给定的表是否经过内存优化? [英] How to determine if given table is memory optimized?

查看:28
本文介绍了如何确定给定的表是否经过内存优化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早上好,

我的第一个问题是如何确定在 MS SQL Server 中创建的表是否经过内存优化.我有一些表,但我不记得其中一些表是否是我创建的内存中优化的.

My first question is how to determine if tables created in MS SQL Server are memory optimized. I have some tables and I don't remember if some of them I created in-memory optimized or not.

非常感谢您的回答.

推荐答案

为了从另一个答案中提炼出来,这里有一种获取数据库中所有表的状态的方法:

To riff off of another answer here, here's a way to get the status for all tables in your database:

select name, OBJECTPROPERTY(object_id,'TableIsMemoryOptimized')
from sys.tables;

同样,如果你只想要内存中的,你可以这样做:

Similarly, if you want just the in-memory ones, you could do:

select name
from sys.tables
where OBJECTPROPERTY(object_id,'TableIsMemoryOptimized') = 1;

这篇关于如何确定给定的表是否经过内存优化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆