---
title: Query Detail
description: Detailed information about a specific SQL query

url: https://help.qmonitor.app/docs/features/dashboards/instance-overview/query-detail/index.md
lastmod: 2026-09-28T17:58:04+02:00
---


The Query Detail dashboard displays details for a single SQL query.

![Query Detail Dashboard](/img/screenshots/features/dashboards/instance-overview/query-detail.png)
*Query Detail Dashboard*

## Dashboard Sections

### Query Text and Actions

The top panel shows the query text as QMonitor captured it. Queries generated by
ORMs or written on a single line can be hard to read. Click "Format" to apply
readable SQL formatting.

Click "Copy to Clipboard" to copy the query for running or analysis in external
tools (such as SSMS). Use "Download" to save the query as a .sql file.

### Fetched Samples

The table below lists all executions of this query within the selected time range.
QMonitor captures a sample every 15 seconds: long-running queries will produce
multiple samples, and queries running at the instant of capture will produce a
sample as well.

Samples alone may not fully reflect a query's resource usage or execution time.
For a complete impact analysis, rely on the Query Stats data:
[Query Stats](../query-stats/).

{{% alert title="Note" %}}
Be aware that the "Duration" column in this table represents the duration of the query at the 
moment of capture, not the total execution time. For long-running queries, this duration may 
be shorter than the actual total execution time.
{{% /alert %}}

{{% alert title="Important" color="warning" %}}
Keep in mind that each sample represents a snapshot of the query's state at the time of capture: the 
metrics shown in the table (CPU, Memory, I/O) are not meant to be added together across samples, 
but rather to provide insight into the query's resource usage at different points in time.
{{% /alert %}}
