摘要: 开始:在上周,客户反映一个系统问题,当处理大量数据的时候,出现网络超时。后来,我们跟踪测试,发现是由于索引碎片多而引起的网络超时。解决方法,自然是重新组织和重新生成索引。在这里,我写了一个存储过程sp_RefreshIndex来实现。存储过程sp_RefreshIndex:use mastergoif object_id('sp_RefreshIndex') Is not null Drop Proc sp_RefreshIndexGocreate proc sp_RefreshIndex ( @Reorganize_Fragmentation_Percent smallin. 阅读全文
posted @ 2012-12-27 16:40 ok_008 阅读(2472) 评论(1) 推荐(2) 编辑
给我写信