From 35c950940c98fc58cc680caecf7f98fb4400edcd Mon Sep 17 00:00:00 2001 From: Conagher Date: Fri, 4 Oct 2024 08:50:57 -0400 Subject: [PATCH 1/3] Added report run date and incremeted the report version --- .../PlatformMigration/Platform_Migration_Inventory.sql | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Reports/SecretServer/PlatformMigration/Platform_Migration_Inventory.sql b/Reports/SecretServer/PlatformMigration/Platform_Migration_Inventory.sql index 17d11ac..8793854 100644 --- a/Reports/SecretServer/PlatformMigration/Platform_Migration_Inventory.sql +++ b/Reports/SecretServer/PlatformMigration/Platform_Migration_Inventory.sql @@ -1,4 +1,10 @@ -SELECT 'Report Version' AS [Item], '1.3.20240925' AS [Value], '' AS [Comment] +SELECT 'Report Version' AS [Item], '1.3.20241004' AS [Value], '' AS [Comment] + +UNION ALL + +SELECT 'Report Date' AS [Item], + CONVERT(VARCHAR, GETDATE(), 101) AS [Value], -- Format: MM/DD/YYYY + '' AS [Comment] UNION ALL From c32f687b65e3189fc017bd3d6040546fbb167b7c Mon Sep 17 00:00:00 2001 From: Conagher Date: Fri, 4 Oct 2024 10:13:54 -0400 Subject: [PATCH 2/3] Updated values and count corrections --- .../PlatformMigration/Platform_Migration_Inventory.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Reports/SecretServer/PlatformMigration/Platform_Migration_Inventory.sql b/Reports/SecretServer/PlatformMigration/Platform_Migration_Inventory.sql index 8793854..da0d5f1 100644 --- a/Reports/SecretServer/PlatformMigration/Platform_Migration_Inventory.sql +++ b/Reports/SecretServer/PlatformMigration/Platform_Migration_Inventory.sql @@ -53,9 +53,9 @@ SELECT '--> Size' AS [Item], AND (SELECT COUNT(*) FROM tbSdkClientAccount WHERE Revoked <> 1) < 2 THEN 'Small' WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) BETWEEN 1001 AND 14000 AND (SELECT COUNT(*) FROM tbSdkClientAccount WHERE Revoked <> 1) BETWEEN 3 AND 7 THEN 'Medium' - WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) BETWEEN 140001 AND 50000 + WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) BETWEEN 14001 AND 50000 AND (SELECT COUNT(*) FROM tbSdkClientAccount WHERE Revoked <> 1) > 7 THEN 'Large' - WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) > 500001 + WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) > 50001 AND (SELECT COUNT(*) FROM tbSdkClientAccount WHERE Revoked <> 1) > 7 THEN 'Custom' WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) > 5000 THEN 'Large' From 84bda6d2f742eb4e1a9ccbd32448a68a8740c52d Mon Sep 17 00:00:00 2001 From: Conagher Date: Fri, 4 Oct 2024 11:10:49 -0400 Subject: [PATCH 3/3] Updated info and count corrections --- .../Platform_Migration_Inventory.sql | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Reports/SecretServer/PlatformMigration/Platform_Migration_Inventory.sql b/Reports/SecretServer/PlatformMigration/Platform_Migration_Inventory.sql index da0d5f1..6d775f4 100644 --- a/Reports/SecretServer/PlatformMigration/Platform_Migration_Inventory.sql +++ b/Reports/SecretServer/PlatformMigration/Platform_Migration_Inventory.sql @@ -49,17 +49,17 @@ UNION ALL SELECT '--> Size' AS [Item], CASE - WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) < 1000 + WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) < 2500 AND (SELECT COUNT(*) FROM tbSdkClientAccount WHERE Revoked <> 1) < 2 THEN 'Small' - WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) BETWEEN 1001 AND 14000 + WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) BETWEEN 2501 AND 10000 AND (SELECT COUNT(*) FROM tbSdkClientAccount WHERE Revoked <> 1) BETWEEN 3 AND 7 THEN 'Medium' - WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) BETWEEN 14001 AND 50000 + WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) BETWEEN 10001 AND 25000 AND (SELECT COUNT(*) FROM tbSdkClientAccount WHERE Revoked <> 1) > 7 THEN 'Large' - WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) > 50001 + WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) > 25001 AND (SELECT COUNT(*) FROM tbSdkClientAccount WHERE Revoked <> 1) > 7 THEN 'Custom' - WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) > 5000 THEN 'Large' - WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) BETWEEN 501 AND 5000 THEN 'Medium' + WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) > 10001 THEN 'Large' + WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) BETWEEN 2501 AND 10000 THEN 'Medium' WHEN (SELECT COUNT(*) FROM tbSdkClientAccount WHERE Revoked <> 1) > 7 THEN 'Large' WHEN (SELECT COUNT(*) FROM tbSdkClientAccount WHERE Revoked <> 1) BETWEEN 3 AND 7 THEN 'Medium' ELSE 'Small' -- Default if both categories are small