Skip to content

Commit 6b66024

Browse files
committed
#1177 sp_BlitzFirst more reader-friendly CPU check 24 results
Closes #1177.
1 parent 9a284ac commit 6b66024

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

sp_BlitzFirst.sql

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,7 @@ BEGIN
15791579
as well get it now - whereas if we're checking 30+ seconds, it might get updated by the
15801580
end of our sp_BlitzFirst session. */
15811581
INSERT INTO #BlitzFirstResults (CheckID, Priority, FindingsGroup, Finding, Details, DetailsInt, URL)
1582-
SELECT 24, 50, 'Server Performance', 'High CPU Utilization', CAST(100 - SystemIdle AS NVARCHAR(20)) + N'%. Ring buffer details: ' + CAST(record AS NVARCHAR(4000)), 100 - SystemIdle, 'http://www.BrentOzar.com/go/cpu'
1582+
SELECT 24, 50, 'Server Performance', 'High CPU Utilization', CAST(100 - SystemIdle AS NVARCHAR(20)) + N'%.', 100 - SystemIdle, 'http://www.BrentOzar.com/go/cpu'
15831583
FROM (
15841584
SELECT record,
15851585
record.value('(./Record/SchedulerMonitorEvent/SystemHealth/SystemIdle)[1]', 'int') AS SystemIdle
@@ -3350,15 +3350,13 @@ EXEC dbo.sp_BlitzFirst
33503350
With extra diagnostic info:
33513351
EXEC dbo.sp_BlitzFirst @ExpertMode = 1;
33523352
3353-
In Ask a Question mode:
3354-
EXEC dbo.sp_BlitzFirst 'Is this cursor bad?';
3355-
33563353
Saving output to tables:
3357-
EXEC sp_BlitzFirst @Seconds = 60
3354+
EXEC sp_BlitzFirst
33583355
, @OutputDatabaseName = 'DBAtools'
33593356
, @OutputSchemaName = 'dbo'
3360-
, @OutputTableName = 'BlitzFirstResults'
3361-
, @OutputTableNameFileStats = 'BlitzFirstResults_FileStats'
3362-
, @OutputTableNamePerfmonStats = 'BlitzFirstResults_PerfmonStats'
3363-
, @OutputTableNameWaitStats = 'BlitzFirstResults_WaitStats'
3357+
, @OutputTableName = 'BlitzFirst'
3358+
, @OutputTableNameFileStats = 'BlitzFirst_FileStats'
3359+
, @OutputTableNamePerfmonStats = 'BlitzFirst_PerfmonStats'
3360+
, @OutputTableNameWaitStats = 'BlitzFirst_WaitStats'
3361+
, @OutputTableNameBlitzCache = 'BlitzCache'
33643362
*/

0 commit comments

Comments
 (0)