You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
), [mp_steps_pretty] AS (SELECT DISTINCT [m1].[name] ,
3509
+
STUFF((SELECTN', '+ [m2].[step_name] FROM [maintenance_plan_table] AS [m2] WHERE [m1].[name] = [m2].[name]
3510
+
FOR XMLPATH(N'')), 1, 2, N'') AS [maintenance_plan_steps]
3511
+
FROM [maintenance_plan_table] AS [m1])
3512
+
3513
+
INSERTINTO [#BlitzResults]
3514
+
( [CheckID] ,
3515
+
[Priority] ,
3516
+
[FindingsGroup] ,
3517
+
[Finding] ,
3518
+
[URL] ,
3519
+
[Details] )
3520
+
3521
+
SELECT
3522
+
181AS [CheckID] ,
3523
+
100AS [Priority] ,
3524
+
'Performance'AS [FindingsGroup] ,
3525
+
'Repetitive Steps In Maintenance Plans'AS [Finding] ,
3526
+
'https://ola.hallengren.com/'AS [URL] ,
3527
+
'The maintenance plan '+ [m].[name] +' is doing repetitive work on indexes and statistics. Perhaps it''s time to try something more modern?'AS [Details]
3528
+
FROM [mp_steps_pretty] m
3529
+
WHERE m.[maintenance_plan_steps] LIKE'%Rebuild%Reorganize%'
3530
+
OR m.[maintenance_plan_steps] LIKE'%Rebuild%Update%'
0 commit comments