Skip to content

Commit

Permalink
changes for #305,#306
Browse files Browse the repository at this point in the history
  • Loading branch information
VladDBA committed Feb 1, 2025
1 parent c1d588b commit 5ddc3dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Resources/GetIndexInfoForWholeDB.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ GROUP BY [l].[resource_database_id],
SELECT TOP(20000) DB_NAME() AS [database],
SCHEMA_NAME([obj].[schema_id]) + '.'
+ [obj].[name] AS [object_name],
[obj].[object_id],
[obj].[type_desc] AS [object_type],
ISNULL([ix].[name], '') AS [index_name],
[ix].[index_id],
[ips].[index_type_desc] AS [index_type],
[ips].[partition_number],
CAST([ips].[avg_fragmentation_in_percent] AS DECIMAL(5, 2)) AS [avg_frag_percent],
Expand All @@ -53,8 +55,10 @@ WHERE [ix].[type] IN( 0, 1, 2, 3,
FROM #test)
GROUP BY SCHEMA_NAME([obj].[schema_id]) + '.'
+ [obj].[name],
[obj].[object_id],
[obj].[type_desc],
[ix].[name],
[ix].[index_id],
[ips].[index_type_desc],
[ips].[partition_number],
[ips].[avg_fragmentation_in_percent],
Expand Down
Binary file modified Resources/PSBlitzOutput.xlsx
Binary file not shown.

0 comments on commit 5ddc3dc

Please sign in to comment.