okb_index_defrag

@index_type int
Specifies which types of indexes should be evaluated

@min_depth int
Specifies how many levels the index tree must have for the index to be evaluated

@min_pages int
Specifies minimum size in 8kB pages for the index to be evaluated

@defrag_threshold numeric(5,2)
Specifies how fragmented the index must be to be defragmented

@rebuild_threshold numeric(5,2)
Specifies how fragmented the index must be to be defragmented

@limited_scan bit
Specifies whether fragmentation should be found with detailed or limited (less costly) scan of the data

@report_only bit
If enabled the procedure will output the commands which would have been ran if this option was disabled

Download code as 7-zip archive.