Skip to content

Commit 451673c

Browse files
committed
Added unforce plan
1 parent 2cd5e0f commit 451673c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

After-Installing-SQL-Server-2017_CU3/ClearAffectedPlans_BeforeCU3_Upgrade.sql

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ BEGIN
3737
WHILE (SELECT COUNT(plan_id) FROM #tmpclearPlans WHERE [IsDone] = 0) > 0
3838
BEGIN
3939
SELECT TOP 1 @clearPlan = plan_id FROM #tmpclearPlans WHERE [IsDone] = 0
40-
EXECUTE sys.sp_query_store_remove_plan @clearPlan
40+
EXECUTE sys.sp_query_store_unforce_plan @clearPlan;
41+
EXECUTE sys.sp_query_store_remove_plan @clearPlan;
4142
4243
UPDATE #tmpclearPlans
4344
SET [IsDone] = 1

0 commit comments

Comments
 (0)