码迷,mamicode.com
首页 > 其他好文 > 详细

查看表的datapages

时间:2015-03-11 10:47:12      阅读:96      评论:0      收藏:0      [点我收藏+]

标签:

 

 

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‘)

查看表的datapages

标签:

原文地址:http://www.cnblogs.com/jacran/p/4329113.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!