如何在Sql server的表中查找所选行的大小?

时间:2014-09-03 08:07:18

标签: sql-server sql-server-2012

我需要在Sql server的表格中查找所选行的大小。 注意:我有Sql Server 2012

1 个答案:

答案 0 :(得分:1)

 One way is to look at the sys.dm_db_index_physical_stats output.

min_record_size_in_bytes,max_record_size_in_bytes和avg_record_size_in_bytes将为您提供所需的尺寸。

If you want to see the size of a particular record, another way is to find the physical row location, see

SQL Server 2008: New (undocumented) physical row locator function.

然后您可以转储行物理结构,请参阅记录剖析。