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

碎片整理语句

时间:2017-07-26 23:32:54      阅读:159      评论:0      收藏:0      [点我收藏+]

标签:include   disco   objectid   uil   with   alter   eai   spi   gid   

create index StatisticsTagArea_AreaId on StatisticsTagArea(AreaId) include(TagId)
drop index StatisticsTagArea_AreaId on StatisticsTagArea
create index StatisticsTagArea_AreaId on StatisticsTagArea(AreaId) include(TagId,DisCount,DisHasPicCount)
dbcc showcontig(StatisticsTagArea,StatisticsTagArea_AreaId)  WITH FAST, TABLERESULTS,  NO_INFOMSGS
dbcc dbreindex(StatisticsTagArea,StatisticsTagArea_AreaId,90)
ALTER Index PK_STATISTICSTAGAREA on StatisticsTagArea rebuild 
dbcc INDEXDEFRAG (0,objectid,indexid)

碎片整理语句

标签:include   disco   objectid   uil   with   alter   eai   spi   gid   

原文地址:http://www.cnblogs.com/baozhu/p/7241974.html

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