Skip to content

Fix FinOps Enterprise feature detection: query all databases, filter to TDE only#782

Merged
erikdarlingdata merged 1 commit intodevfrom
fix/780-finops-enterprise-tde-only
Apr 2, 2026
Merged

Fix FinOps Enterprise feature detection: query all databases, filter to TDE only#782
erikdarlingdata merged 1 commit intodevfrom
fix/780-finops-enterprise-tde-only

Conversation

@erikdarlingdata
Copy link
Copy Markdown
Owner

Summary

  • sys.dm_db_persisted_sku_features is database-scoped on all versions (database_id column was never added despite PR Release v2.5.0: version bumps, bug fixes, changelog #766's assumption). Previous code only queried the connected database, missing enterprise features in user databases.
  • Now queries across all online user databases using dynamic SQL with QUOTENAME and COLLATE DATABASE_DEFAULT for safety.
  • Filtered to only TDE — Compression, Partitioning, and ColumnStoreIndex are available in Standard Edition since SQL Server 2016 SP1, so they are not actual downgrade blockers.
  • Updated recommendation text to specifically reference TDE.
  • Fixed in both Dashboard and Lite.

Addresses #780

Test plan

  • Verified query returns correct results across databases on SQL2022 (10 rows from 5 databases)
  • Handles collation conflicts across databases
  • Both apps build clean
  • 5-minute collector health monitoring: zero errors on SQL2022
  • Lite and Dashboard error logs clean

🤖 Generated with Claude Code

…to TDE only

sys.dm_db_persisted_sku_features is database-scoped on all versions
(database_id column was never added). Previous code queried only the
connected database (master for Lite, PerformanceMonitor for Dashboard),
missing features in user databases.

Fixed by querying across all online user databases with dynamic SQL.
Also filtered to TransparentDataEncryption only — Compression,
Partitioning, and ColumnStoreIndex are available in Standard Edition
since SQL Server 2016 SP1, so they are not downgrade blockers.

Addresses #780

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit 0f2de62 into dev Apr 2, 2026
3 checks passed
@erikdarlingdata erikdarlingdata deleted the fix/780-finops-enterprise-tde-only branch April 9, 2026 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant