From b690e6000b244041973137a48cdbea931cbd8aee Mon Sep 17 00:00:00 2001 From: "Jovan Popovic (MSFT)" Date: Thu, 23 May 2019 12:15:32 +0200 Subject: [PATCH] Refactoring verbose logic --- .../compare-environment-settings/compare-properties.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/samples/manage/azure-sql-db-managed-instance/compare-environment-settings/compare-properties.sql b/samples/manage/azure-sql-db-managed-instance/compare-environment-settings/compare-properties.sql index a0610e9e..7f71a60c 100644 --- a/samples/manage/azure-sql-db-managed-instance/compare-environment-settings/compare-properties.sql +++ b/samples/manage/azure-sql-db-managed-instance/compare-environment-settings/compare-properties.sql @@ -1,3 +1,5 @@ +declare @verbose int = 0; -- change to 1 to get more verbose comparison; + declare @source xml = ''; declare @target xml = ''; @@ -43,6 +45,6 @@ or src.value is not null and tgt.value is null) ) select * from diff -where is_missing = 0 -- comment-out this line to compare missing properties. +where is_missing = 0 or @verbose = 1 -- in the earlier versions you had to comment out this line. Now just set the value of the flag up order by property