Skip to content

Commit 5205fc5

Browse files
authored
#2017 sp_Blitz Evaluation Edition expiration check (#2032)
Closes #2017.
1 parent 98e1e87 commit 5205fc5

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

Documentation/sp_Blitz 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: 228.
10-
If you want to add a new one, start at 229.
9+
CURRENT HIGH CHECKID: 229.
10+
If you want to add a new one, start at 230.
1111

1212
| Priority | FindingsGroup | Finding | URL | CheckID |
1313
|----------|-----------------------------|---------------------------------------------------------|------------------------------------------------------------------------|----------|
@@ -24,6 +24,7 @@ If you want to add a new one, start at 229.
2424
| 1 | Corruption | Database Corruption Detected | https://www.BrentOzar.com/go/repair | 90 |
2525
| 1 | Performance | Memory Dangerously Low | https://www.BrentOzar.com/go/max | 51 |
2626
| 1 | Performance | Memory Dangerously Low in NUMA Nodes | https://www.BrentOzar.com/go/max | 159 |
27+
| 1 | Reliability | Evaluation Edition | https://www.BrentOzar.com/go/workgroup | 229 |
2728
| 1 | Reliability | Last good DBCC CHECKDB over 2 weeks old | https://www.BrentOzar.com/go/checkdb | 68 |
2829
| 5 | Monitoring | Disabled Internal Monitoring Features | https://msdn.microsoft.com/en-us/library/ms190737.aspx | 177 |
2930
| 5 | Reliability | Dangerous Third Party Modules | https://support.microsoft.com/en-us/kb/2033238 | 179 |

sp_Blitz.sql

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5710,6 +5710,32 @@ IF @ProductVersionMajor >= 10
57105710

57115711
END;
57125712

5713+
IF NOT EXISTS ( SELECT 1
5714+
FROM #SkipChecks
5715+
WHERE DatabaseName IS NULL AND CheckID = 229 )
5716+
AND CAST(SERVERPROPERTY('Edition') AS NVARCHAR(4000)) LIKE '%Evaluation%'
5717+
BEGIN
5718+
5719+
IF @Debug IN (1, 2) RAISERROR('Running CheckId [%d].', 0, 1, 216) WITH NOWAIT;
5720+
5721+
INSERT INTO #BlitzResults
5722+
( CheckID ,
5723+
Priority ,
5724+
FindingsGroup ,
5725+
Finding ,
5726+
URL ,
5727+
Details
5728+
)
5729+
SELECT 229 AS CheckID,
5730+
1 AS Priority,
5731+
'Reliability' AS FindingsGroup,
5732+
'Evaluation Edition' AS Finding,
5733+
'https://www.BrentOzar.com/go/workgroup' AS URL,
5734+
'This server will stop working on: ' + CAST(CONVERT(DATETIME, DATEADD(DD, 180, create_date), 102) AS VARCHAR(100)) AS details
5735+
FROM sys.server_principals
5736+
WHERE sid = 0x010100000000000512000000;
5737+
5738+
END;
57135739

57145740

57155741
IF @CheckUserDatabaseObjects = 1

0 commit comments

Comments
 (0)