Skip to content

Commit b690e60

Browse files
Refactoring verbose logic
1 parent b53f6fe commit b690e60

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

samples/manage/azure-sql-db-managed-instance/compare-environment-settings/compare-properties.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
declare @verbose int = 0; -- change to 1 to get more verbose comparison;
2+
13
declare @source xml = '<place source XML result here>';
24
declare @target xml = '<place target XML result here>';
35

@@ -43,6 +45,6 @@ or src.value is not null and tgt.value is null)
4345
)
4446
select *
4547
from diff
46-
where is_missing = 0 -- comment-out this line to compare missing properties.
48+
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
4749
order by property
4850

0 commit comments

Comments
 (0)