Skip to content

Commit

Permalink
Update sp_QuickieStore.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdarlingdata committed Apr 2, 2024
1 parent db77a87 commit 5145534
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions sp_QuickieStore/sp_QuickieStore.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1284,6 +1284,17 @@ BEGIN
END;

SELECT
@azure =
CASE
WHEN
CONVERT
(
sysname,
SERVERPROPERTY('EDITION')
) = N'SQL Azure'
THEN 1
ELSE 0
END,
@engine =
CONVERT
(
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 5145534

Please sign in to comment.