Skip to content

Commit 30f5b42

Browse files
authored
2019-01 Release (#1932)
* Updating readme.md for sp_DatabaseRestore Documenting @ExistingDBAction for https://dba.stackexchange.com/questions/226145/sp-databaserestore-msg-50000. * 1900 sp_BlitzIndex add histograms When @TableName is specified and sys.dm_db_stats_histogram is available. Closes #1900. * #1903 sp_Blitz SQLServerCheckup Adding filter for that app name. Closes #1903. * #1905 sp_BlitzIndex remove BOU link Nothing against BOU, just don't need it in that particular place. Closes #1905. * #1908 Update copyright dates Ah, the glamour. Closes #1908. * Issue #1904 Change RAISERROR 'severity' for that should trigger throw and error. * Issue #1910 Add SQL Server version check before choosing 'memory grant' as the @BlitzCacheSortOrder. * Issue #1910 Add temp table creation. * #1914 sp_BlitzIndex partition error severity Dropping severity level from 16 to 0 since we're logging it in the result set anyway. Closes #1914. * Issue 1894 Moved RESTORE HEADERONLY up * LF line endings * added some extra checks + corrected some nesting * rebase and line endings * Web site commit Does this fix line endings? * #1916 sp_Blitz ignore backup on TempDB drive Closes #1916. * Auto line endings Dealing with sp_DatabaseRestore's line endings. * 1919 sp_Blitz ignoring a few checks for Managed Instances (#1920) * 1919 sp_Blitz ignoring a few checks for Managed Instances Working on #1919. * #1919 sp_Blitz excluding restored databases When checking backup history. Working on #1919. * #1919 sp_Blitz ignore some checks on Mgd Instances Changing RCSI wording on Azure SQL DB. Working on #1919. * #1921 Sp_BlitzIndex Add Drop and Create Columns to Output (#1923) Joined output query to #IndexCreateTsql to retrieve the CreateTsql already generated earlier in the script. Created Drop TSQL based off evaluating what type of index was present. * #1921 sp_BlitzIndex adding drops (#1924) Moving drop and create TSQL to the end of mode 2's results. Closes #1921. * #1925 sp_Blitz AWS RDS detection (#1926) Don't just rely on EC2 VM name to detect RDS. Also adds a new result noting that checks were skipped. Closes #1925. * #1927 sp_BlitzIndex skip rdsadmin db (#1928) GetAllDatabases = 1 fails when it hits rdsadmin because they're referring to the resource db. Closes #1927. * 2019_01 Release (#1931) Prep work for the release - changing version numbers, building build scripts.
1 parent 301f1aa commit 30f5b42

22 files changed

+2267
-1789
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Force this repository to use Windows line endings
2-
* text=crlf
2+
* text=auto
33

44
# Custom for Visual Studio
55
*.ascx text

Documentation/sp_Blitz Checks by Priority.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ 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: 222.
10-
If you want to add a new one, start at 223.
9+
CURRENT HIGH CHECKID: 223.
10+
If you want to add a new one, start at 224.
1111

1212
| Priority | FindingsGroup | Finding | URL | CheckID |
1313
|----------|-----------------------------|---------------------------------------------------------|------------------------------------------------------------------------|----------|
1414
| 0 | Outdated sp_Blitz | sp_Blitz is Over 6 Months Old | https://www.BrentOzar.com/blitz/ | 155 |
15-
| 0 | Informational | @CheckUserDatabaseObjects Disabled | https://www.BrentOzar.com/blitz/ | 204 |
15+
| 0 | Informational | @CheckUserDatabaseObjects Disabled | https://www.BrentOzar.com/blitz/ | 223 |
16+
| 0 | Informational | Some Checks Skipped | https://www.BrentOzar.com/blitz/ | 204 |
1617
| 1 | Backup | Backing Up to Same Drive Where Databases Reside | https://www.BrentOzar.com/go/backup | 93 |
1718
| 1 | Backup | Backups Not Performed Recently | https://www.BrentOzar.com/go/nobak | 1 |
1819
| 1 | Backup | Encryption Certificate Not Backed Up Recently | https://www.BrentOzar.com/go/tde | 202 |

Install-All-Scripts.sql

100644100755
Lines changed: 577 additions & 471 deletions
Large diffs are not rendered by default.

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

100644100755
Lines changed: 182 additions & 51 deletions
Large diffs are not rendered by default.

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

100644100755
Lines changed: 185 additions & 58 deletions
Large diffs are not rendered by default.

LICENSE.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,25 @@ 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, 2018 as
6+
All other copyrights for sp_Blitz are held by Brent Ozar Unlimited, 2019 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, 2018
12+
All other copyrights for DatabaseRestore are held by Brent Ozar Unlimited, 2019
1313
as described below.
1414

1515
Copyright for sp_BlitzInMemoryOLTP are held by Ned Otter and Konstantin
1616
Taranov as part of project sqlserver-kit and are provided under the MIT license:
1717
https://github.com/ktaranov/sqlserver-kit
1818

19+
Copyright for SqlServerVersionScript are held by Josh Darnell as part of
20+
project SqlServerVersionScript and are provided undre the MIT license:
21+
https://github.com/jadarnel27/SqlServerVersionScript
1922

20-
Copyright (c) 2018 Brent Ozar Unlimited
23+
24+
Copyright (c) 2019 Brent Ozar Unlimited
2125

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

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ Parameters include:
397397
* @RestoreDiff - default 0. When set to 1, we restore the ncessary full, differential, and log backups (instead of just full and log) to get to the most recent point in time.
398398
* @ContinueLogs - default 0. When set to 1, we don't restore a full or differential backup - we only restore the transaction log backups. Good for continuous log restores with tools like sp_AllNightLog.
399399
* @RunRecovery - default 0. When set to 1, we run RESTORE WITH RECOVERY, putting the database into writable mode, and no additional log backups can be restored.
400+
* @ExistingDBAction - if the database already exists when we try to restore it, 1 sets the database to single user mode, 2 kills the connections, and 3 kills the connections and then drops the database.
400401
* @Debug - default 0. When 1, we print out messages of what we're doing in the messages tab of SSMS.
401402
* @StopAt NVARCHAR(14) - pass in a date time to stop your restores at a time like '20170508201501'.
402403

SqlServerVersions.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,14 @@ VALUES
4444
(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'),
4545
(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'),
4646
(14, 1000, 'RTM ', '', '2017-10-02', '2022-10-11', '2027-10-12', 'SQL Server 2017', 'RTM '),
47+
(13, 5264, 'SP2 CU5', 'https://support.microsoft.com/en-us/help/4475776', '2019-01-23', '2021-07-13', '2026-07-14', 'SQL Server 2016', 'Service Pack 2 Cumulative Update 5'),
4748
(13, 5233, 'SP2 CU4', 'https://support.microsoft.com/en-us/help/4464106', '2018-11-13', '2021-07-13', '2026-07-14', 'SQL Server 2016', 'Service Pack 2 Cumulative Update 4'),
4849
(13, 5216, 'SP2 CU3', 'https://support.microsoft.com/en-us/help/4458871', '2018-09-20', '2021-07-13', '2026-07-14', 'SQL Server 2016', 'Service Pack 2 Cumulative Update 3'),
4950
(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'),
5051
(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'),
5152
(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'),
5253
(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 '),
54+
(13, 4550, 'SP2 CU13', 'https://support.microsoft.com/en-us/help/4475775', '2019-01-23', '2021-07-13', '2026-07-14', 'SQL Server 2016', 'Service Pack 2 Cumulative Update 13'),
5355
(13, 4541, 'SP2 CU12', 'https://support.microsoft.com/en-us/help/4464343', '2018-11-13', '2021-07-13', '2026-07-14', 'SQL Server 2016', 'Service Pack 2 Cumulative Update 12'),
5456
(13, 4528, 'SP1 CU11', 'https://support.microsoft.com/en-us/help/4459676', '2018-09-17', '2019-07-09', '2019-07-09', 'SQL Server 2016', 'Service Pack 1 Cumulative Update 11'),
5557
(13, 4514, 'SP1 CU10', 'https://support.microsoft.com/en-us/help/4341569', '2018-07-16', '2019-07-09', '2019-07-09', 'SQL Server 2016', 'Service Pack 1 Cumulative Update 10'),

sp_AllNightLog.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ SET NOCOUNT ON;
2828
BEGIN;
2929

3030
DECLARE @Version VARCHAR(30);
31-
SET @Version = '3.1';
32-
SET @VersionDate = '20190101';
31+
SET @Version = '3.2';
32+
SET @VersionDate = '20190128';
3333

3434
IF @Help = 1
3535

@@ -76,7 +76,7 @@ BEGIN
7676
7777
MIT License
7878
79-
Copyright (c) 2018 Brent Ozar Unlimited
79+
Copyright (c) 2019 Brent Ozar Unlimited
8080
8181
Permission is hereby granted, free of charge, to any person obtaining a copy
8282
of this software and associated documentation files (the "Software"), to deal

sp_AllNightLog_Setup.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ SET NOCOUNT ON;
3535
BEGIN;
3636

3737
DECLARE @Version VARCHAR(30);
38-
SET @Version = '3.1';
39-
SET @VersionDate = '20190101';;
38+
SET @Version = '3.2';
39+
SET @VersionDate = '20190128';;
4040

4141

4242
IF @Help = 1
@@ -111,7 +111,7 @@ BEGIN
111111
112112
MIT License
113113
114-
Copyright (c) 2018 Brent Ozar Unlimited
114+
Copyright (c) 2019 Brent Ozar Unlimited
115115
116116
Permission is hereby granted, free of charge, to any person obtaining a copy
117117
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)