Skip to content

Conversation

@chadbaldwin
Copy link
Contributor

@chadbaldwin chadbaldwin commented Oct 23, 2025

DB_ID() does not support quoted database identifiers (ex: DB_ID('[master]')), it will return NULL. Pass the database name in as a string variable instead.

Discovered this bug in sp_BlitzIndex when running via @Mode = 3 (missing indexes). This bug was causing all of the *_with_data_type columns to return NULL.

Confirmed behavior is true on 2017+ linux docker containers (all I have access to at the moment).

(Ignore the Start-SQLServer command, that's my own thing)
image

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