@@ -26,7 +26,6 @@ ALTER PROCEDURE
2626 @get_all_databases bit = 0 , /* looks for all accessible user databases and returns combined results*/
2727 @include_databases nvarchar (max ) = NULL , /* comma-separated list of databases to include (only when @get_all_databases = 1)*/
2828 @exclude_databases nvarchar (max ) = NULL , /* comma-separated list of databases to exclude (only when @get_all_databases = 1)*/
29- @verbose_output tinyint = 0 , /* 0 -> no verbose output, 1 -> add NONUNIQUE, NONCLUSTERED type output in the original_index_defintion output */
3029 @help bit = ' false' ,
3130 @debug bit = ' false' ,
3231 @version varchar (20 ) = NULL OUTPUT ,
@@ -2056,7 +2055,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20562055 WHEN id1 .index_id = 1
20572056 THEN N ' CLUSTERED '
20582057 WHEN id1 .index_id > 1
2059- AND @verbose_output >= 1
20602058 THEN N ' NONCLUSTERED '
20612059 ELSE N ' '
20622060 END +
@@ -5465,16 +5463,18 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
54655463
54665464 /* ===== Additional Space Savings from Compression ===== */
54675465 /* Conservative compression estimate (20%) */
5468- compression_min_savings_gb = FORMAT (ISNULL (irs .compression_min_savings_gb , 0 ), ' N2' ),
5469-
5470- /* Optimistic compression estimate (60%) */
5471- compression_max_savings_gb = FORMAT (ISNULL (irs .compression_max_savings_gb , 0 ), ' N2' ),
5472-
5473- /* Total savings (removal + conservative compression) */
5474- total_min_savings_gb = FORMAT (ISNULL (irs .total_min_savings_gb , 0 ), ' N2' ),
5475-
5476- /* Total savings (removal + optimistic compression) */
5477- total_max_savings_gb = FORMAT (ISNULL (irs .total_max_savings_gb , 0 ), ' N2' ),
5466+ compression_savings_potential =
5467+ N ' minimum: ' +
5468+ FORMAT (ISNULL (irs .compression_min_savings_gb , 0 ), ' N2' ) +
5469+ N ' GB maximum ' +
5470+ FORMAT (ISNULL (irs .compression_max_savings_gb , 0 ), ' N2' )
5471+ + N ' GB' ,
5472+ compression_savings_potential_total =
5473+ N ' total minimum: ' +
5474+ FORMAT (ISNULL (irs .total_min_savings_gb , 0 ), ' N2' ) +
5475+ N ' GB total maximum: ' +
5476+ FORMAT (ISNULL (irs .total_max_savings_gb , 0 ), ' N2' ) +
5477+ N ' GB' ,
54785478
54795479 /* ===== Section 3: Table and Usage Statistics ===== */
54805480 /* Row count */
0 commit comments