我需要在Sql server
的表格中查找所选行的大小。
注意:我有Sql Server 2012
。
答案 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.
然后您可以转储行物理结构,请参阅记录剖析。