@@ -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
10451052IF @SortOrder = ' sp_BlitzIndex'
@@ -5039,14 +5046,6 @@ IF EXISTS
50395046)
50405047BEGIN
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-
50505049IF @common_version >= 11
50515050 SET @user_perm_sql + = N'
50525051 SELECT @buffer_pool_memory_gb = SUM(pages_kb)/ 1024. / 1024.
0 commit comments