Applications Systems
SQL is not available for some queries when DPA is monitoring an Azure SQL database instance or ASMI
When DPA is monitoring an Azure SQL database instance or an Azure SQL Managed Instance (ASMI), occasionally DPA includes unusual SQL statements in the trends charts and does not display the SQL text.
First published date
Last published date
Overview
When DPA is monitoring an Azure SQL database instance or an Azure SQL Managed Instance (ASMI), occasionally DPA includes one or more unusual SQL statements in the trends charts:
- DPA does not display the SQL text. When you click the SQL Text tab, it displays the message
SQL statement not available. - The machine name is
DBnnn("DB" followed by numbers -- for example,DB215). - The user name includes either
DBnnn\WForNT AUTHORITY\SYSTEM.
Product section
Cause
Resolution
You can prevent DPA from displaying these queries in either of the following ways:
- Configure the QUICKPOLL_WHERE_CLAUSE setting
- Exclude the SQL statement from the UI
Configure the QUICKPOLL_WHERE_CLAUSE setting
- Click Options > Administration > Advanced Options.
- Click the DB Instance Options tab and select the database instance.
- Select Support Options.
- Locate the QUICKPOLL_WHERE_CLAUSE setting and click to edit it.
- Enter the following as the New Value and click Update:
AND (program_name not in ('BackupService', 'FullBackupService', 'DmvCollector', 'MetricsDownloader', 'TdService', 'NodeAgent', 'VaService') AND hostname not like 'DB[0-9]%\WF%')
Exclude the SQL statement from the UI
- From any trends chart, click the SQL hash to open the Query Details page.
- In the upper-right corner, click SQL Properties.
- Under Advanced Settings, deselect Show in Trends charts and click Save.
The query is no longer displayed in trends charts.