select object_name(i.object_id) as tableName,
data_pages as dataPages
from sys.indexes as i
join sys.partitions as p on p.object_id=i.object_id and
p.index_id=i.index_id
join sys.allocation_units as a on a.container_id=p.partition_id
--表名
where i.object_id=object_id(‘T_AN_FORG‘)
时间: 2024-11-04 20:18:49