Skip to content

Commit aa31bba

Browse files
authored
Merge pull request #2760 from BrentOzarULTD/dev
2021-01-18 Release
2 parents a991b61 + fe7bb85 commit aa31bba

18 files changed

+3718
-2470
lines changed

Install-All-Scripts.sql

Lines changed: 941 additions & 626 deletions
Large diffs are not rendered by default.

Install-Core-Blitz-No-Query-Store.sql

Lines changed: 915 additions & 606 deletions
Large diffs are not rendered by default.

Install-Core-Blitz-With-Query-Store.sql

Lines changed: 917 additions & 608 deletions
Large diffs are not rendered by default.

LICENSE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ MIT License
33
Copyright for portions of sp_Blitz are held by Microsoft as part of project
44
tigertoolbox and are provided under the MIT license:
55
https://github.com/Microsoft/tigertoolbox
6-
All other copyrights for sp_Blitz are held by Brent Ozar Unlimited, 2020 as
6+
All other copyrights for sp_Blitz are held by Brent Ozar Unlimited, 2021 as
77
described below.
88

99
Copyright for portions of DatabaseRestore are held by GregWhiteDBA as part
1010
of project MSSQLAutoRestore and are provided under the MIT license:
1111
https://github.com/GregWhiteDBA/MSSQLAutoRestore
12-
All other copyrights for DatabaseRestore are held by Brent Ozar Unlimited, 2020
12+
All other copyrights for DatabaseRestore are held by Brent Ozar Unlimited, 2021
1313
as described below.
1414

1515
Copyright for sp_BlitzInMemoryOLTP are held by Ned Otter and Konstantin
@@ -21,7 +21,7 @@ project SqlServerVersionScript and are provided under the MIT license:
2121
https://github.com/jadarnel27/SqlServerVersionScript
2222

2323

24-
Copyright (c) 2020 Brent Ozar Unlimited
24+
Copyright (c) 2021 Brent Ozar Unlimited
2525

2626
Permission is hereby granted, free of charge, to any person obtaining a copy
2727
of this software and associated documentation files (the "Software"), to deal

SqlServerVersions.sql

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ DELETE FROM dbo.SqlServerVersions;
4141
INSERT INTO dbo.SqlServerVersions
4242
(MajorVersionNumber, MinorVersionNumber, Branch, [Url], ReleaseDate, MainstreamSupportEndDate, ExtendedSupportEndDate, MajorVersionName, MinorVersionName)
4343
VALUES
44+
(15, 4073, 'CU8 GDR', 'https://support.microsoft.com/en-us/help/4583459', '2021-01-12', '2025-01-07', '2030-01-08', 'SQL Server 2019', 'Cumulative Update 8 GDR '),
4445
(15, 4073, 'CU8', 'https://support.microsoft.com/en-us/help/4577194', '2020-10-01', '2025-01-07', '2030-01-08', 'SQL Server 2019', 'Cumulative Update 8 '),
4546
(15, 4063, 'CU7', 'https://support.microsoft.com/en-us/help/4570012', '2020-09-02', '2025-01-07', '2030-01-08', 'SQL Server 2019', 'Cumulative Update 7 '),
4647
(15, 4053, 'CU6', 'https://support.microsoft.com/en-us/help/4563110', '2020-08-04', '2025-01-07', '2030-01-08', 'SQL Server 2019', 'Cumulative Update 6 '),
@@ -51,6 +52,7 @@ VALUES
5152
(15, 4003, 'CU1', 'https://support.microsoft.com/en-us/help/4527376', '2020-01-07', '2025-01-07', '2030-01-08', 'SQL Server 2019', 'Cumulative Update 1 '),
5253
(15, 2070, 'GDR', 'https://support.microsoft.com/en-us/help/4517790', '2019-11-04', '2025-01-07', '2030-01-08', 'SQL Server 2019', 'RTM GDR '),
5354
(15, 2000, 'RTM ', '', '2019-11-04', '2025-01-07', '2030-01-08', 'SQL Server 2019', 'RTM '),
55+
(14, 3370, 'RTM CU22 GDR', 'https://support.microsoft.com/en-us/help/4583457', '2021-01-12', '2022-10-11', '2027-10-12', 'SQL Server 2017', 'RTM Cumulative Update 22 GDR'),
5456
(14, 3356, 'RTM CU22', 'https://support.microsoft.com/en-us/help/4577467', '2020-09-10', '2022-10-11', '2027-10-12', 'SQL Server 2017', 'RTM Cumulative Update 22'),
5557
(14, 3335, 'RTM CU21', 'https://support.microsoft.com/en-us/help/4557397', '2020-07-01', '2022-10-11', '2027-10-12', 'SQL Server 2017', 'RTM Cumulative Update 21'),
5658
(14, 3294, 'RTM CU20', 'https://support.microsoft.com/en-us/help/4541283', '2020-04-07', '2022-10-11', '2027-10-12', 'SQL Server 2017', 'RTM Cumulative Update 20'),
@@ -74,6 +76,7 @@ VALUES
7476
(14, 3008, 'RTM CU2', 'https://support.microsoft.com/en-us/help/4052574', '2017-11-28', '2022-10-11', '2027-10-12', 'SQL Server 2017', 'RTM Cumulative Update 2'),
7577
(14, 3006, 'RTM CU1', 'https://support.microsoft.com/en-us/help/4038634', '2017-10-24', '2022-10-11', '2027-10-12', 'SQL Server 2017', 'RTM Cumulative Update 1'),
7678
(14, 1000, 'RTM ', '', '2017-10-02', '2022-10-11', '2027-10-12', 'SQL Server 2017', 'RTM '),
79+
(13, 5865, 'SP2 CU15 GDR', 'https://support.microsoft.com/en-us/help/4583461', '2021-01-12', '2021-07-13', '2026-07-14', 'SQL Server 2016', 'Service Pack 2 Cumulative Update 15 GDR'),
7780
(13, 5850, 'SP2 CU15', 'https://support.microsoft.com/en-us/help/4577775', '2020-09-28', '2021-07-13', '2026-07-14', 'SQL Server 2016', 'Service Pack 2 Cumulative Update 15'),
7881
(13, 5830, 'SP2 CU14', 'https://support.microsoft.com/en-us/help/4564903', '2020-08-06', '2021-07-13', '2026-07-14', 'SQL Server 2016', 'Service Pack 2 Cumulative Update 14'),
7982
(13, 5820, 'SP2 CU13', 'https://support.microsoft.com/en-us/help/4549825', '2020-05-28', '2021-07-13', '2026-07-14', 'SQL Server 2016', 'Service Pack 2 Cumulative Update 13'),
@@ -90,6 +93,7 @@ VALUES
9093
(13, 5201, 'SP2 CU2 + Security Update', 'https://support.microsoft.com/en-us/help/4458621', '2018-08-21', '2021-07-13', '2026-07-14', 'SQL Server 2016', 'Service Pack 2 Cumulative Update 2 + Security Update'),
9194
(13, 5153, 'SP2 CU2', 'https://support.microsoft.com/en-us/help/4340355', '2018-07-16', '2021-07-13', '2026-07-14', 'SQL Server 2016', 'Service Pack 2 Cumulative Update 2'),
9295
(13, 5149, 'SP2 CU1', 'https://support.microsoft.com/en-us/help/4135048', '2018-05-30', '2021-07-13', '2026-07-14', 'SQL Server 2016', 'Service Pack 2 Cumulative Update 1'),
96+
(13, 5103, 'SP2 GDR', 'https://support.microsoft.com/en-us/help/4583460', '2021-01-12', '2021-07-13', '2026-07-14', 'SQL Server 2016', 'Service Pack 2 GDR'),
9397
(13, 5026, 'SP2 ', 'https://support.microsoft.com/en-us/help/4052908', '2018-04-24', '2021-07-13', '2026-07-14', 'SQL Server 2016', 'Service Pack 2 '),
9498
(13, 4574, 'SP1 CU15', 'https://support.microsoft.com/en-us/help/4495257', '2019-05-16', '2021-07-13', '2026-07-14', 'SQL Server 2016', 'Service Pack 1 Cumulative Update 15'),
9599
(13, 4560, 'SP1 CU14', 'https://support.microsoft.com/en-us/help/4488535', '2019-03-19', '2021-07-13', '2026-07-14', 'SQL Server 2016', 'Service Pack 1 Cumulative Update 14'),
@@ -118,10 +122,13 @@ VALUES
118122
(13, 2164, 'RTM CU2', 'https://support.microsoft.com/en-us/help/3182270 ', '2016-09-22', '2018-01-09', '2018-01-09', 'SQL Server 2016', 'RTM Cumulative Update 2'),
119123
(13, 2149, 'RTM CU1', 'https://support.microsoft.com/en-us/help/3164674 ', '2016-07-25', '2018-01-09', '2018-01-09', 'SQL Server 2016', 'RTM Cumulative Update 1'),
120124
(13, 1601, 'RTM ', '', '2016-06-01', '2019-01-09', '2019-01-09', 'SQL Server 2016', 'RTM '),
125+
(12, 6433, 'SP3 CU4 GDR', 'https://support.microsoft.com/en-us/help/4583462', '2021-01-12', '2019-07-09', '2024-07-09', 'SQL Server 2014', 'Service Pack 3 Cumulative Update 4 GDR'),
126+
(12, 6372, 'SP3 CU4 GDR', 'https://support.microsoft.com/en-us/help/4535288', '2020-02-11', '2019-07-09', '2024-07-09', 'SQL Server 2014', 'Service Pack 3 Cumulative Update 4 GDR'),
121127
(12, 6329, 'SP3 CU4', 'https://support.microsoft.com/en-us/help/4500181', '2019-07-29', '2019-07-09', '2024-07-09', 'SQL Server 2014', 'Service Pack 3 Cumulative Update 4'),
122128
(12, 6259, 'SP3 CU3', 'https://support.microsoft.com/en-us/help/4491539', '2019-04-16', '2019-07-09', '2024-07-09', 'SQL Server 2014', 'Service Pack 3 Cumulative Update 3'),
123129
(12, 6214, 'SP3 CU2', 'https://support.microsoft.com/en-us/help/4482960', '2019-02-19', '2019-07-09', '2024-07-09', 'SQL Server 2014', 'Service Pack 3 Cumulative Update 2'),
124130
(12, 6205, 'SP3 CU1', 'https://support.microsoft.com/en-us/help/4470220', '2018-12-12', '2019-07-09', '2024-07-09', 'SQL Server 2014', 'Service Pack 3 Cumulative Update 1'),
131+
(12, 6164, 'SP3 GDR', 'https://support.microsoft.com/en-us/help/4583463', '2021-01-12', '2019-07-09', '2024-07-09', 'SQL Server 2014', 'Service Pack 3 GDR'),
125132
(12, 6024, 'SP3 ', 'https://support.microsoft.com/en-us/help/4022619', '2018-10-30', '2019-07-09', '2024-07-09', 'SQL Server 2014', 'Service Pack 3 '),
126133
(12, 5687, 'SP2 CU18', 'https://support.microsoft.com/en-us/help/4500180', '2019-07-29', '2020-01-14', '2020-01-14', 'SQL Server 2014', 'Service Pack 2 Cumulative Update 18'),
127134
(12, 5632, 'SP2 CU17', 'https://support.microsoft.com/en-us/help/4491540', '2019-04-16', '2020-01-14', '2020-01-14', 'SQL Server 2014', 'Service Pack 2 Cumulative Update 17'),
@@ -177,6 +184,7 @@ VALUES
177184
(12, 2269, 'RTM MS15-058: GDR Security Update ', 'https://support.microsoft.com/en-us/help/3045324', '2015-07-14', '2016-07-12', '2016-07-12', 'SQL Server 2014', 'RTM MS15-058: GDR Security Update '),
178185
(12, 2254, 'RTM MS14-044: GDR Security Update', 'https://support.microsoft.com/en-us/help/2977315', '2014-08-12', '2016-07-12', '2016-07-12', 'SQL Server 2014', 'RTM MS14-044: GDR Security Update'),
179186
(12, 2000, 'RTM ', '', '2014-04-01', '2016-07-12', '2016-07-12', 'SQL Server 2014', 'RTM '),
187+
(11, 7507, 'SP4 GDR Security Update', 'https://support.microsoft.com/en-us/help/4583465', '2021-01-12', '2017-07-11', '2022-07-12', 'SQL Server 2012', 'Service Pack 4 GDR Security Update for CVE-2021-1636'),
180188
(11, 7493, 'SP4 GDR Security Update', 'https://support.microsoft.com/en-us/help/4532098', '2020-02-11', '2017-07-11', '2022-07-12', 'SQL Server 2012', 'Service Pack 4 GDR Security Update for CVE-2020-0618'),
181189
(11, 7469, 'SP4 On-Demand Hotfix Update', 'https://support.microsoft.com/en-us/help/4091266', '2018-03-28', '2017-07-11', '2022-07-12', 'SQL Server 2012', 'Service Pack 4 SP4 On-Demand Hotfix Update'),
182190
(11, 7462, 'SP4 ADV180002: GDR Security Update', 'https://support.microsoft.com/en-us/help/4057116', '2018-01-12', '2017-07-11', '2022-07-12', 'SQL Server 2012', 'Service Pack 4 ADV180002: GDR Security Update'),

sp_AllNightLog.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ SET NOCOUNT ON;
3030
BEGIN;
3131

3232

33-
SELECT @Version = '3.9999', @VersionDate = '20201211';
33+
SELECT @Version = '8.0', @VersionDate = '20210117';
3434

3535
IF(@VersionCheckMode = 1)
3636
BEGIN
@@ -82,7 +82,7 @@ BEGIN
8282
8383
MIT License
8484
85-
Copyright (c) 2020 Brent Ozar Unlimited
85+
Copyright (c) 2021 Brent Ozar Unlimited
8686
8787
Permission is hereby granted, free of charge, to any person obtaining a copy
8888
of this software and associated documentation files (the "Software"), to deal

sp_AllNightLog_Setup.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ SET NOCOUNT ON;
3636

3737
BEGIN;
3838

39-
SELECT @Version = '3.9999', @VersionDate = '20201211';
39+
SELECT @Version = '8.0', @VersionDate = '20210117';
4040

4141
IF(@VersionCheckMode = 1)
4242
BEGIN
@@ -115,7 +115,7 @@ BEGIN
115115
116116
MIT License
117117
118-
Copyright (c) 2020 Brent Ozar Unlimited
118+
Copyright (c) 2021 Brent Ozar Unlimited
119119
120120
Permission is hereby granted, free of charge, to any person obtaining a copy
121121
of this software and associated documentation files (the "Software"), to deal

sp_Blitz.sql

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,17 @@ AS
3737
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
3838

3939

40-
SELECT @Version = '7.99999', @VersionDate = '20201211';
40+
SELECT @Version = '8.0', @VersionDate = '20210117';
4141
SET @OutputType = UPPER(@OutputType);
4242

4343
IF(@VersionCheckMode = 1)
4444
BEGIN
4545
RETURN;
4646
END;
4747

48-
IF @Help = 1 PRINT '
48+
IF @Help = 1
49+
BEGIN
50+
PRINT '
4951
/*
5052
sp_Blitz from http://FirstResponderKit.org
5153
@@ -90,9 +92,9 @@ AS
9092
tigertoolbox and are provided under the MIT license:
9193
https://github.com/Microsoft/tigertoolbox
9294
93-
All other copyrights for sp_Blitz are held by Brent Ozar Unlimited, 2020.
95+
All other copyrights for sp_Blitz are held by Brent Ozar Unlimited, 2021.
9496
95-
Copyright (c) 2020 Brent Ozar Unlimited
97+
Copyright (c) 2021 Brent Ozar Unlimited
9698
9799
Permission is hereby granted, free of charge, to any person obtaining a copy
98100
of this software and associated documentation files (the "Software"), to deal
@@ -113,6 +115,9 @@ AS
113115
SOFTWARE.
114116
115117
*/';
118+
RETURN;
119+
END; /* @Help = 1 */
120+
116121
ELSE IF @OutputType = 'SCHEMA'
117122
BEGIN
118123
SELECT FieldList = '[Priority] TINYINT, [FindingsGroup] VARCHAR(50), [Finding] VARCHAR(200), [DatabaseName] NVARCHAR(128), [URL] VARCHAR(200), [Details] NVARCHAR(4000), [QueryPlan] NVARCHAR(MAX), [QueryPlanFiltered] NVARCHAR(MAX), [CheckID] INT';
@@ -1665,6 +1670,7 @@ AS
16651670
+ '] has auto-shrink enabled. This setting can dramatically decrease performance.' ) AS Details
16661671
FROM sys.databases
16671672
WHERE is_auto_shrink_on = 1
1673+
AND state <> 6 /* Offline */
16681674
AND name NOT IN ( SELECT DISTINCT
16691675
DatabaseName
16701676
FROM #SkipChecks
@@ -1698,7 +1704,7 @@ AS
16981704
FROM sys.databases
16991705
WHERE page_verify_option < 2
17001706
AND name <> ''tempdb''
1701-
AND state <> 1 /* Restoring */
1707+
AND state NOT IN (1, 6) /* Restoring, Offline */
17021708
and name not in (select distinct DatabaseName from #SkipChecks WHERE CheckID IS NULL OR CheckID = 14) OPTION (RECOMPILE);';
17031709

17041710
IF @Debug = 2 AND @StringToExecute IS NOT NULL PRINT @StringToExecute;

sp_BlitzBackups.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ AS
2323
SET NOCOUNT ON;
2424
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
2525

26-
SELECT @Version = '3.99999', @VersionDate = '20201211';
26+
SELECT @Version = '8.0', @VersionDate = '20210117';
2727

2828
IF(@VersionCheckMode = 1)
2929
BEGIN
@@ -70,7 +70,7 @@ AS
7070
7171
MIT License
7272
73-
Copyright (c) 2020 Brent Ozar Unlimited
73+
Copyright (c) 2021 Brent Ozar Unlimited
7474
7575
Permission is hereby granted, free of charge, to any person obtaining a copy
7676
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)