Skip to content

Commit 8e07f82

Browse files
Fixes #767
Add TRY_CAST as bigint to avoid conversion failure after parsing the JSON from the sys.dm_db_tuning_recommendations
1 parent 4706985 commit 8e07f82

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sp_QuickieStore/sp_QuickieStore.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11127,7 +11127,7 @@ WHERE EXISTS
1112711127
SELECT
1112811128
1/0
1112911129
FROM #query_store_plan AS qsp
11130-
WHERE plan_force_flat.regressed_plan_id = qsp.plan_id
11130+
WHERE TRY_CAST(plan_force_flat.regressed_plan_id AS bigint) = qsp.plan_id
1113111131
)
1113211132
OPTION(RECOMPILE);' + @nc10;
1113311133

0 commit comments

Comments
 (0)