From 5145534c625c2eb959ffbe2f3dfdf88343b973ef Mon Sep 17 00:00:00 2001 From: Erik Darling <2136037+erikdarlingdata@users.noreply.github.com> Date: Tue, 2 Apr 2024 11:28:27 -0400 Subject: [PATCH] Update sp_QuickieStore.sql --- sp_QuickieStore/sp_QuickieStore.sql | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/sp_QuickieStore/sp_QuickieStore.sql b/sp_QuickieStore/sp_QuickieStore.sql index c1c7809..7de1b5f 100644 --- a/sp_QuickieStore/sp_QuickieStore.sql +++ b/sp_QuickieStore/sp_QuickieStore.sql @@ -1284,6 +1284,17 @@ BEGIN END; SELECT + @azure = + CASE + WHEN + CONVERT + ( + sysname, + SERVERPROPERTY('EDITION') + ) = N'SQL Azure' + THEN 1 + ELSE 0 + END, @engine = CONVERT ( @@ -3831,7 +3842,8 @@ WHERE qsp.is_forced_plan = 1'; IF @only_queries_with_forced_plan_failures = 1 BEGIN - SELECT @sql += N' + SELECT + @sql += N' AND qsp.last_force_failure_reason > 0' END @@ -4591,7 +4603,8 @@ IF AND @sql_2022_views = 1 ) BEGIN - SELECT @sql += N' + SELECT + @sql += N' qsp.plan_forcing_type_desc, qsp.has_compile_replay_script, qsp.is_optimized_plan_forcing_disabled,