Skip to content

Commit 4f97020

Browse files
authored
Merge pull request #3028 from BrentOzarULTD/20211106_release
2021-11-06 release
2 parents 8253006 + 326c707 commit 4f97020

18 files changed

+215
-182
lines changed
Lines changed: 27 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,22 @@
11
/*Blitz*/
22
EXEC dbo.sp_Blitz @CheckUserDatabaseObjects = 1, @CheckServerInfo = 1;
3-
3+
GO
44
EXEC dbo.sp_Blitz @CheckUserDatabaseObjects = 1, @CheckServerInfo = 1, @OutputDatabaseName = 'DBAtools', @OutputSchemaName = 'dbo', @OutputTableName = 'Blitz';
5-
6-
EXEC dbo.sp_Blitz @CheckUserDatabaseObjects = 1, @CheckServerInfo = 1, @Debug = 1;
7-
8-
EXEC dbo.sp_Blitz @CheckUserDatabaseObjects = 1, @CheckServerInfo = 1, @Debug = 2;
5+
GO
96

107
/*BlitzWho*/
11-
12-
EXEC dbo.sp_BlitzWho @ExpertMode = 1, @Debug = 1;
13-
14-
EXEC dbo.sp_BlitzWho @ExpertMode = 0, @Debug = 1;
15-
8+
EXEC dbo.sp_BlitzWho @ExpertMode = 1;
9+
GO
10+
EXEC dbo.sp_BlitzWho @ExpertMode = 0;
11+
GO
1612
EXEC dbo.sp_BlitzWho @OutputDatabaseName = 'DBAtools', @OutputSchemaName = 'dbo', @OutputTableName = 'BlitzWho_Results';
17-
13+
GO
1814

1915
/*BlitzFirst*/
2016
EXEC dbo.sp_BlitzFirst @Seconds = 5, @ExpertMode = 1;
21-
17+
GO
2218
EXEC dbo.sp_BlitzFirst @SinceStartup = 1;
23-
24-
EXEC dbo.sp_BlitzFirst @Seconds = 5, @ExpertMode = 1, @ShowSleepingSPIDs = 1;
25-
26-
CREATE DATABASE DBAtools;
27-
19+
GO
2820
EXEC dbo.sp_BlitzFirst @OutputDatabaseName = 'DBAtools',
2921
@OutputSchemaName = 'dbo',
3022
@OutputTableName = 'BlitzFirst',
@@ -33,52 +25,39 @@ EXEC dbo.sp_BlitzFirst @OutputDatabaseName = 'DBAtools',
3325
@OutputTableNameWaitStats = 'BlitzFirst_WaitStats',
3426
@OutputTableNameBlitzCache = 'BlitzCache',
3527
@OutputTableNameBlitzWho = 'BlitzWho';
36-
37-
SELECT TOP 100 * FROM DBAtools.dbo.BlitzFirst ORDER BY 1 DESC;
38-
SELECT TOP 100 * FROM DBAtools.dbo.BlitzFirst_FileStats ORDER BY 1 DESC;
39-
SELECT TOP 100 * FROM DBAtools.dbo.BlitzFirst_PerfmonStats ORDER BY 1 DESC;
40-
SELECT TOP 100 * FROM DBAtools.dbo.BlitzFirst_WaitStats ORDER BY 1 DESC;
41-
SELECT TOP 100 * FROM DBAtools.dbo.BlitzCache ORDER BY 1 DESC;
42-
SELECT TOP 100 * FROM DBAtools.dbo.BlitzWho ORDER BY 1 DESC;
28+
GO
4329

4430

4531
/*BlitzIndex*/
46-
EXEC dbo.sp_BlitzIndex @GetAllDatabases = 1, @Mode = 4;
47-
48-
EXEC dbo.sp_BlitzIndex @DatabaseName = 'StackOverflow', @Mode = 4;
49-
50-
EXEC dbo.sp_BlitzIndex @DatabaseName = 'StackOverflow', @Mode = 4, @SkipPartitions = 0, @SkipStatistics = 0;
51-
32+
EXEC dbo.sp_BlitzIndex @GetAllDatabases = 1, @Mode = 0;
33+
GO
5234
EXEC dbo.sp_BlitzIndex @GetAllDatabases = 1, @Mode = 1;
53-
35+
GO
5436
EXEC dbo.sp_BlitzIndex @GetAllDatabases = 1, @Mode = 2;
55-
37+
GO
5638
EXEC dbo.sp_BlitzIndex @GetAllDatabases = 1, @Mode = 3;
39+
GO
40+
EXEC dbo.sp_BlitzIndex @GetAllDatabases = 1, @Mode = 4;
41+
GO
42+
EXEC dbo.sp_BlitzIndex @DatabaseName = 'StackOverflow', @TableName = 'Users'
43+
GO
5744

5845

5946
/*BlitzCache*/
6047
EXEC dbo.sp_BlitzCache @SortOrder = 'all';
61-
62-
EXEC dbo.sp_BlitzCache @SortOrder = 'all avg', @Debug = 1;
63-
64-
EXEC dbo.sp_BlitzCache @MinimumExecutionCount = 10;
65-
66-
EXEC dbo.sp_BlitzCache @DatabaseName = N'StackOverflow';
67-
48+
GO
6849
EXEC dbo.sp_BlitzCache @OutputDatabaseName = 'DBAtools', @OutputSchemaName = 'dbo', @OutputTableName = 'BlitzCache';
50+
GO
6951

70-
EXEC dbo.sp_BlitzCache @ExpertMode = 1;
71-
72-
EXEC dbo.sp_BlitzCache @ExpertMode = 2;
73-
74-
/*BlitzQueryStore*/
52+
/*BlitzQueryStore - uncomment this when testing on 2016+ instances:
7553
EXEC dbo.sp_BlitzQueryStore @DatabaseName = 'StackOverflow';
54+
GO
55+
*/
7656

7757
/*BlitzBackups*/
7858
EXEC dbo.sp_BlitzBackups @HoursBack = 1000000;
79-
80-
/*sp_AllNightLog_Setup*/
81-
EXEC dbo.sp_AllNightLog_Setup @RPOSeconds = 30, @RTOSeconds = 30, @BackupPath = 'D:\Backup', @RestorePath = 'D:\Backup', @RunSetup = 1;
59+
GO
8260

8361
/*sp_BlitzLock*/
84-
EXEC dbo.sp_BlitzLock @Debug = 1;
62+
EXEC dbo.sp_BlitzLock;
63+
GO

Install-All-Scripts.sql

Lines changed: 61 additions & 43 deletions
Large diffs are not rendered by default.

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

Lines changed: 56 additions & 38 deletions
Large diffs are not rendered by default.

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

Lines changed: 57 additions & 39 deletions
Large diffs are not rendered by default.

sp_AllNightLog.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ SET STATISTICS XML OFF;
3131
BEGIN;
3232

3333

34-
SELECT @Version = '8.06', @VersionDate = '20210914';
34+
SELECT @Version = '8.07', @VersionDate = '20211106';
3535

3636
IF(@VersionCheckMode = 1)
3737
BEGIN

sp_AllNightLog_Setup.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ SET STATISTICS XML OFF;
3737

3838
BEGIN;
3939

40-
SELECT @Version = '8.06', @VersionDate = '20210914';
40+
SELECT @Version = '8.07', @VersionDate = '20211106';
4141

4242
IF(@VersionCheckMode = 1)
4343
BEGIN

sp_Blitz.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ AS
3838
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
3939

4040

41-
SELECT @Version = '8.06', @VersionDate = '20210914';
41+
SELECT @Version = '8.07', @VersionDate = '20211106';
4242
SET @OutputType = UPPER(@OutputType);
4343

4444
IF(@VersionCheckMode = 1)

sp_BlitzAnalysis.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ AS
3737
SET NOCOUNT ON;
3838
SET STATISTICS XML OFF;
3939

40-
SELECT @Version = '8.06', @VersionDate = '20210914';
40+
SELECT @Version = '8.07', @VersionDate = '20211106';
4141

4242
IF(@VersionCheckMode = 1)
4343
BEGIN

sp_BlitzBackups.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ AS
2424
SET STATISTICS XML OFF;
2525
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
2626

27-
SELECT @Version = '8.06', @VersionDate = '20210914';
27+
SELECT @Version = '8.07', @VersionDate = '20211106';
2828

2929
IF(@VersionCheckMode = 1)
3030
BEGIN

sp_BlitzCache.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ SET NOCOUNT ON;
280280
SET STATISTICS XML OFF;
281281
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
282282

283-
SELECT @Version = '8.06', @VersionDate = '20210914';
283+
SELECT @Version = '8.07', @VersionDate = '20211106';
284284
SET @OutputType = UPPER(@OutputType);
285285

286286
IF(@VersionCheckMode = 1)

0 commit comments

Comments
 (0)