`sp_spaceused` 是否计算 table 中包含图像的列?

Does `sp_spaceused` calculate columns that contain image in a table?

有一个 table 行数不多,但包含几个图像,我想知道那里的大小,spaceused 给出的大小正确吗?

sp_spaceused 是否计算 table 中包含图像的列?

示例:

sp_spaceused tab1

会给

name  rowtotal reserved   data   index_size   unused
tab1   153390   6436832   8248   63270576    79528

此 table 结构包含图像数据。那么 table 的大小是多少?

  1. sp_help table_name 报告有关数据库对象(sysobjects 中列出的任何对象)以及有关系统或用户定义数据类型的信息。列显示 optimistic_index_lock.
  2. 使用sp_spaceused [objname [,1] ],即分别报告table和每个索引。将 row-total 使用的数据 space 除以实际行长度的一个值(不包括基于锁定方案和 activity 的碎片)。

    • 数据:正在用于 table/data 存储

    • index : 被索引或 text/image 链使用

    • 未使用:space 保留对象使用但尚未使用

Official source that information was taken