Fix - Lite - [ERROR] [FinOps] Recommendation check failed (Enterprise features): Invalid column name 'database_id'.#777
Closed
dphugo wants to merge 6 commits into
Closed
Conversation
v2.2.0: Fix SignPath signing
Release v2.3.0
Release v2.4.0
Release v2.4.1
Release v2.5.0
… `database_id`, which causes the query to error. - removed `database_id` from `DB_NAME()` funciton
Owner
Owner
|
Thanks for catching this @dphugo! You're right that the This was actually fixed for the Dashboard side in #766 using a The Lite side was supposed to get the same fix but was missed. We've now ported the Dashboard approach to Lite (same |
erikdarlingdata
added a commit
that referenced
this pull request
Apr 2, 2026
…e_id column Port the COL_LENGTH check from Dashboard (#766) to Lite — detect whether sys.dm_db_persisted_sku_features has the database_id column before querying it, falling back to N'(unknown)' on older builds that lack the column. Closes community PR #777 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
sys.dm_db_persisted_sku_featuresdoes not have a columndatabase_id, which causes the query to error.database_idfromDB_NAME()funcitonWhat does this PR do?
In Lite edition, fixes bug where invalid column
database_idis selected.Note: I don't have an environment to build and test the Full Edition, but the same issue is there as well. I will raise an issue to discuss this category further.
Which component(s) does this affect?
How was this tested?
Describe the testing you've done. Include:
Steps to verify the change works:
database_idreference.Checklist
dotnet build -c Debug)Some warnings on other code objects
So my code builds with zero warnings, but there are warnings on other objects. I assume these were introduced by a previous commit.