BrentOzarULTD / SQL-Server-First-Responder-Kit

sp_Blitz, sp_BlitzCache, sp_BlitzFirst, sp_BlitzIndex, and other SQL Server scripts for health checks and performance tuning.
http://FirstResponderKit.org
Other
3.38k stars 999 forks source link

NumDatabases includes those already marked as unreachable #3511

Closed garyhuntddn closed 6 months ago

garyhuntddn commented 6 months ago

There is code to identify databases which can't be analysed that results in secondary_role_allow_connections_desc = 'NO', but these aren't excluded from the NumDatabases count

BrentOzar commented 6 months ago

Hi! Can you check out the contribution guide: https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/blob/main/CONTRIBUTING.md

And then going by those instructions, open issues with a description of the bug you're trying to fix? Thanks!