Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Documentation/sp_BlitzFirst_Checks_by_Priority.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Before adding a new check, make sure to add a Github issue for it first, and hav

If you want to change anything about a check - the priority, finding, URL, or ID - open a Github issue first. The relevant scripts have to be updated too.

CURRENT HIGH CHECKID: 52
If you want to add a new check, start at 53.
CURRENT HIGH CHECKID: 53
If you want to add a new check, start at 54.

| Priority | FindingsGroup | Finding | URL | CheckID |
|----------|---------------------------------|---------------------------------------|-------------------------------------------------|----------|
Expand Down Expand Up @@ -36,6 +36,7 @@ If you want to add a new check, start at 53.
| 50 | Query Problems | Re-Compilations/Sec High | https://www.brentozar.com/go/recompile | 16 |
| 50 | Query Problems | Statistics Updated Recently | https://www.brentozar.com/go/stats | 44 |
| 50 | Query Problems | High Percentage Of Runnable Queries | https://erikdarlingdata.com/go/RunnableQueue/ | 47 |
| 50 | Server Performance | Azure Operation Ongoing | https://learn.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-operation-status-azure-sql-database | 53 |
| 50 | Server Performance | High CPU Utilization | https://www.brentozar.com/go/cpu | 24 |
| 50 | Server Performance | High CPU Utilization - Non SQL Processes | https://www.brentozar.com/go/cpu | 28 |
| 50 | Server Performance | Slow Data File Reads | https://www.brentozar.com/go/slow | 11 |
Expand Down
21 changes: 21 additions & 0 deletions sp_BlitzFirst.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2592,6 +2592,27 @@ If one of them is a lead blocker, consider killing that query.'' AS HowToStopit,

END

/* Server Performance - Azure Operation Ongoing - CheckID 53 */
IF (@Debug = 1)
BEGIN
RAISERROR('Running CheckID 53',10,1) WITH NOWAIT;
END
IF EXISTS (SELECT * FROM sys.all_objects WHERE name = 'dm_operation_status')
BEGIN
INSERT INTO #BlitzFirstResults (CheckID, Priority, FindingsGroup, Finding, URL, Details)
SELECT 53 AS CheckID,
50 AS Priority,
'Server Performance' AS FindingGroup,
'Azure Operation ' + CASE WHEN state IN (2, 3, 5) THEN 'Ended Recently' ELSE 'Ongoing' END AS Finding,
'https://learn.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-operation-status-azure-sql-database' AS URL,
N'Operation: ' + operation + N' State: ' + state_desc + N' Percent Complete: ' + CAST(percent_complete AS NVARCHAR(10)) + @LineFeed
+ N' On: ' + CAST(resource_type_desc AS NVARCHAR(100)) + N':' + CAST(major_resource_id AS NVARCHAR(100)) + @LineFeed
+ N' Started: ' + CAST(start_time AS NVARCHAR(100)) + N' Last Modified Time: ' + CAST(last_modify_time AS NVARCHAR(100)) + @LineFeed
+ N' For more information, query SELECT * FROM sys.dm_operation_status; ' AS Details
FROM sys.dm_operation_status
END


/* Potential Upcoming Problems - High Number of Connections - CheckID 49 */
IF (@Debug = 1)
BEGIN
Expand Down
Loading