The issue of Query Store displaying queries as "Restricted Text" in Azure SQL Managed Instance typically occurs due to permission settings. Even if you have admin access, you may need specific permissions to view the full query text.
In Azure SQL Managed Instance, the following permissions are required to view query text in Query Performance Insight:
- Owner, Contributor, SQL DB Contributor, or SQL Server Contributor permissions are necessary to view the query text.
If you are not seeing the query text, ensure that you have one of these roles assigned. Additionally, if the Query Store is not properly configured, it may also lead to restricted access to query details. You can check the configuration settings and ensure that Query Store is active on your database.
If you still encounter issues after verifying permissions and configuration, consider reviewing the Query Store settings or consulting Azure documentation for further troubleshooting steps.