Skip to content

Commit 02c84b6

Browse files
authored
Merge pull request #2380 from BrentOzarULTD/2372_sp_BlitzCache_memory_clerks_bug
#2372 sp_BlitzCache declares
2 parents 84e8e74 + 9967546 commit 02c84b6

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

sp_BlitzCache.sql

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,8 +1038,15 @@ DECLARE @DurationFilter_i INT,
10381038
@msg NVARCHAR(4000),
10391039
@NoobSaibot BIT = 0,
10401040
@VersionShowsAirQuoteActualPlans BIT,
1041-
@ObjectFullName NVARCHAR(2000)
1042-
;
1041+
@ObjectFullName NVARCHAR(2000),
1042+
@user_perm_sql NVARCHAR(MAX) = N'',
1043+
@user_perm_gb_out DECIMAL(10,2),
1044+
@common_version DECIMAL(10,2),
1045+
@buffer_pool_memory_gb DECIMAL(10,2),
1046+
@user_perm_percent DECIMAL(10,2),
1047+
@is_tokenstore_big BIT = 0;
1048+
1049+
10431050

10441051

10451052
IF @SortOrder = 'sp_BlitzIndex'
@@ -5039,14 +5046,6 @@ IF EXISTS
50395046
)
50405047
BEGIN
50415048

5042-
DECLARE @user_perm_sql NVARCHAR(MAX) = N'';
5043-
DECLARE @user_perm_gb_out DECIMAL(10,2);
5044-
DECLARE @common_version DECIMAL(10,2);
5045-
DECLARE @buffer_pool_memory_gb DECIMAL(10,2);
5046-
DECLARE @user_perm_percent DECIMAL(10,2);
5047-
DECLARE @is_tokenstore_big BIT = 0;
5048-
5049-
50505049
IF @common_version >= 11
50515050
SET @user_perm_sql += N'
50525051
SELECT @buffer_pool_memory_gb = SUM(pages_kb)/ 1024. / 1024.

0 commit comments

Comments
 (0)