defrag.txt FOR /F "delims=" %%a in ('findstr /C:"Total fragmented space" "%Temp%\defrag.txt" ') do SET "fragmentation=%%a" ECHO %fragmentation%---------------------------------------------------
我的Sp:
--Description : This script reorganizes and rebuilds the index if the fragmentation level is higherLevel lower threshold to check for reorganizing the table, if the fragmentation is higher than thisLevel lower threshold to check for rebuilding the table, if the fragmentat
[avg_fragmentation_in_percent] as [fragmentation_percent]inner join sys.objects[name] is not NULL 现在,我需要从所有数据库中选择具有指定列的所有索引。[avg_fragmentation_in_percent] as [fragmentation_percent]
from sys