Skip to content

Commit 0f824b0

Browse files
committed
3708_BlitzFirst_MI_operations
Added check 53 for Azure operations ongoing.
1 parent c2dbcf9 commit 0f824b0

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

Documentation/sp_BlitzFirst_Checks_by_Priority.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Before adding a new check, make sure to add a Github issue for it first, and hav
66

77
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.
88

9-
CURRENT HIGH CHECKID: 52
10-
If you want to add a new check, start at 53.
9+
CURRENT HIGH CHECKID: 53
10+
If you want to add a new check, start at 54.
1111

1212
| Priority | FindingsGroup | Finding | URL | CheckID |
1313
|----------|---------------------------------|---------------------------------------|-------------------------------------------------|----------|
@@ -36,6 +36,7 @@ If you want to add a new check, start at 53.
3636
| 50 | Query Problems | Re-Compilations/Sec High | https://www.brentozar.com/go/recompile | 16 |
3737
| 50 | Query Problems | Statistics Updated Recently | https://www.brentozar.com/go/stats | 44 |
3838
| 50 | Query Problems | High Percentage Of Runnable Queries | https://erikdarlingdata.com/go/RunnableQueue/ | 47 |
39+
| 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 |
3940
| 50 | Server Performance | High CPU Utilization | https://www.brentozar.com/go/cpu | 24 |
4041
| 50 | Server Performance | High CPU Utilization - Non SQL Processes | https://www.brentozar.com/go/cpu | 28 |
4142
| 50 | Server Performance | Slow Data File Reads | https://www.brentozar.com/go/slow | 11 |

sp_BlitzFirst.sql

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2592,6 +2592,27 @@ If one of them is a lead blocker, consider killing that query.'' AS HowToStopit,
25922592

25932593
END
25942594

2595+
/* Server Performance - Azure Operation Ongoing - CheckID 53 */
2596+
IF (@Debug = 1)
2597+
BEGIN
2598+
RAISERROR('Running CheckID 53',10,1) WITH NOWAIT;
2599+
END
2600+
IF EXISTS (SELECT * FROM sys.all_objects WHERE name = 'dm_operation_status')
2601+
BEGIN
2602+
INSERT INTO #BlitzFirstResults (CheckID, Priority, FindingsGroup, Finding, URL, Details)
2603+
SELECT 53 AS CheckID,
2604+
50 AS Priority,
2605+
'Server Performance' AS FindingGroup,
2606+
'Azure Operation ' + CASE WHEN state IN (2, 3, 5) THEN 'Ended Recently' ELSE 'Ongoing' END AS Finding,
2607+
'https://learn.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-operation-status-azure-sql-database' AS URL,
2608+
N'Operation: ' + operation + N' State: ' + state_desc + N' Percent Complete: ' + CAST(percent_complete AS NVARCHAR(10)) + @LineFeed
2609+
+ N' On: ' + CAST(resource_type_desc AS NVARCHAR(100)) + N':' + CAST(major_resource_id AS NVARCHAR(100)) + @LineFeed
2610+
+ N' Started: ' + CAST(start_time AS NVARCHAR(100)) + N' Last Modified Time: ' + CAST(last_modify_time AS NVARCHAR(100)) + @LineFeed
2611+
+ N' For more information, query SELECT * FROM sys.dm_operation_status; ' AS Details
2612+
FROM sys.dm_operation_status
2613+
END
2614+
2615+
25952616
/* Potential Upcoming Problems - High Number of Connections - CheckID 49 */
25962617
IF (@Debug = 1)
25972618
BEGIN

0 commit comments

Comments
 (0)