From b7e32756da2518b36a6ccc87eaa594a1c0b8c078 Mon Sep 17 00:00:00 2001 From: Ben <60398078+bwiggin10@users.noreply.github.com> Date: Tue, 22 Jul 2025 09:17:40 -0400 Subject: [PATCH] Set @is_query_store_on Default Value to NULL Changes the default value of parameter @is_query_store_on from 0 to NULL to avoid excluding non-query store databases by default. --- sp_ineachdb.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sp_ineachdb.sql b/sp_ineachdb.sql index a477eb9c3..5f81ee422 100644 --- a/sp_ineachdb.sql +++ b/sp_ineachdb.sql @@ -30,7 +30,7 @@ ALTER PROCEDURE [dbo].[sp_ineachdb] @VersionDate datetime = NULL OUTPUT, @VersionCheckMode bit = 0, @is_ag_writeable_copy bit = 0, - @is_query_store_on bit = 0 + @is_query_store_on bit = NULL -- WITH EXECUTE AS OWNER – maybe not a great idea, depending on the security of your system AS BEGIN