Skip to content

Data collection errors related to secondary database availability. #325

@windsorkelly

Description

@windsorkelly

Component

SQL collection scripts

Performance Monitor Version

2.0.0

SQL Server Version

Microsoft SQL Server 2016 (SP3-GDR) (KB5068401) - 13.0.6475.1 (X64) Oct 4 2025 05:49:46 Copyright (c) Microsoft Corporation Enterprise Edition: Core-based Licensing (64-bit) on Windows Server 2016 Datacenter 10.0 (Build 14393: ) (Hypervisor)

Windows Version

Windows Server 2016 Standard

Describe the Bug

Getting data collection errors due to my secondary database not allowing read only intent.

This is how I updated database_configuration_collector to eliminate the errors.

alter database_configuration_collector - Copy.txt

Thank you for the great product.

Steps to Reproduce

Install product via GUI. Errors when data collection runs at the end of the process.

Expected Behavior

I would expect that data collection would ignore secondary databases the don't allow read only intent.

Actual Behavior

Data collection reports errors attempting to access database that are not readable.

Error Messages / Log Output

From the installation log:  
[ERROR]   database_configuration_collector: Database: DaDatabase - The target database, 'DaDatabase', is participating in an availability group and is currently not accessible for queries. Either data movement is suspended or the availability replica is not enabled for read access...

Screenshots

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions