摘要:
开始:在上周,客户反映一个系统问题,当处理大量数据的时候,出现网络超时。后来,我们跟踪测试,发现是由于索引碎片多而引起的网络超时。解决方法,自然是重新组织和重新生成索引。在这里,我写了一个存储过程sp_RefreshIndex来实现。存储过程sp_RefreshIndex:use mastergoif object_id('sp_RefreshIndex') Is not null Drop Proc sp_RefreshIndexGocreate proc sp_RefreshIndex ( @Reorganize_Fragmentation_Percent smallin. 阅读全文
搜索
积分与排名
- 积分 - 289952
- 排名 - 3513