SQL SERVER 2008 SP 2 이상 출처: http://sqlfool.com/category/sql-scripts/ 인덱스 조각화를 얻고 실행하는 sp 이다. SQLl 2005의 sp2 이상에서 가능하다. 1. 테이블 생성 /* Scroll down to the see notes, disclaimers, and licensing information */ DECLARE @indexDefragLog_rename VARCHAR(128) , @indexDefragExclusion_rename VARCHAR(128) , @indexDefragStatus_rename VARCHAR(128); SELECT @indexDefragLog_rename = 'dba_indexDefragLog_obsolete_' +..