Independent product studio · Swedenhello@karelialabs.com

JetBrains plugin Live

QueryScope: SQL Server query profiler inside JetBrains IDEs

SQL Server Profiler is deprecated, and setting up Extended Events by hand takes time. QueryScope captures what your application sends to SQL Server from inside the IDE, using the data source you already have configured.

Version 2026.2.4 on JetBrains Marketplace. Needs DataGrip or another JetBrains IDE with Database Tools, 2025.2 to 2026.3. On 2025.1, QueryScope 2026.2.2 still works (without the MCP tools).

Version
2026.2.4
Query capture
Verified on SQL Server 2022 (other versions experimental)
Query Store view
SQL Server 2016 or later; tested on 2019, 2022 and 2025
Blocking view
SQL Server 2016 SP1 or later; tested on 2019, 2022 and 2025
IDE builds
252 to 263.* (2025.2 to 2026.3); on 2025.1, QueryScope 2026.2.2
Price
Personal $39/year, commercial $79/year, 30-day trial
QueryScope Query Store tab with the top resource consumers of a sample shop database for the last 24 hours by CPU time, and the two plans of the selected procedure below
Top resource consumers from Query Store, with every plan

What QueryScope for SQL Server does

MCP tools for your AI assistant

QueryScope adds eight tools to the IDE's built-in MCP server. An AI assistant or any other MCP client connected to your IDE can read estimated and actual execution plans, current blocking chains and Query Store: the top queries, the queries that got slower, and every plan of a query. The tools only read: they never change data, kill a session or force a plan. Step by step: SQL Server MCP tools for your AI assistant in DataGrip.

Extended Events capture

Completed batches and RPC calls from SQL Server 2022, through the IDE's configured data source.

The numbers that matter

SQL text with duration, CPU, logical reads, writes and row counts.

Filter and group

Filter by database, application, login and minimum duration, and group by query hash.

Optional events

Statement, error, attention and deadlock events when you need them.

Export

CSV or JSON.

Cleans up after itself

A temporary, bounded server session that is removed when you stop.

Query Store view

The top resource consumers of a SQL Server database for the last hour, 24 hours, 7 days or a custom window, by total or average CPU time, duration, logical reads, memory grant or executions.

Regressed queries

Queries whose recent average is worse than in a baseline window before it, with the plan each window ran most and the extra cost. Open a query's plans in the plan viewer or compare two side by side.

Force Plan and Unforce Plan

Only after a confirmation, and offered only to a login with ALTER on the database. The forced plans list shows every forced plan with its force failures.

Blocking monitor

Live blocking chains of a SQL Server data source, read every 5 seconds or on the interval you choose: head blockers at the top, the sessions they block below them, with waits, transactions and statements.

Recent deadlocks

The deadlock reports SQL Server's system_health session already keeps: time, victim, processes, objects and statements, with Copy XML and Save .xdl.

Execution plan viewer

Open .sqlplan files and plan XML from result cells as a graphical plan with warnings and missing index suggestions, and compare two plans side by side. Works offline.

Screenshots

QueryScope Regressed queries tab with a sample procedure whose recent average duration is 51 times its baseline average after its plan changed, and both plans below
Regressed queries: recent average against a baseline window
QueryScope Forced plans tab with two forced plans of a sample shop database, one of them with a force failure, and the Unforce Plan button for the selected plan
Force a good plan after a check, and see every forced plan
QueryScope message that the login cannot read Query Store of the database, with the GRANT VIEW DATABASE STATE statement to ask a DBA for
Names the missing permission, with the GRANT to ask for
QueryScope saying that Query Store is off in a sample archive database, with the ALTER DATABASE statement that turns it on
Query Store off? It says so, and how to turn it on
QueryScope Blocking tab with two head blockers at the top, the sessions they block below them, and the waits, transactions and last batch of a sleeping head blocker
Live blocking chains: head blockers first, with waits and transactions
A blocked session selected in the QueryScope Blocking tab, with its LCK_M_U wait on a key, the UPDATE it runs and its last batch
Every blocked session with its wait resource and statement
QueryScope Recent deadlocks tab with two deadlocks from system_health: victim, processes, locked objects, statements and the Copy XML and Save .xdl buttons
Recent deadlocks from system_health, with Copy XML and Save .xdl
QueryScope message that the login cannot see the sessions of other logins, with the GRANT VIEW SERVER PERFORMANCE STATE statement to ask a DBA for
Names the missing permission, with the GRANT to ask for
QueryScope Blocking tab saying No blocking right now, with the time of the last check
No blocking right now: checked on the interval you choose
QueryScope tool window with captured queries, duration, CPU, reads and the SQL text
Captured queries in the IDE

SQL Server Query Store, in DataGrip, on any operating system

Query Store already records which queries your SQL Server database runs, with which plans, and how long they take. SQL Server Management Studio shows it, but SSMS runs on Windows only, and DataGrip has no Query Store view of its own. QueryScope 2026.2.2 adds a Query Store tab to its tool window, inside DataGrip and the other JetBrains IDEs with Database Tools.

  • Is it on? Pick a data source and a database. QueryScope shows the actual and the desired state of Query Store, how full it is and its interval. If it is off or read-only it says why in plain words, and how to turn it on.
  • Top resource consumers. The queries that used the most CPU, time, logical reads or memory in the last hour, day, week or any window you set, as totals or per run.
  • Regressed queries. Queries that got slower: their recent average next to a baseline window before it, how many times worse, what the slowdown cost in total, and the plan each window ran most. A query that suddenly got a different plan is the first thing you see.
  • Plans side by side. Every plan of a query with its figures. Open one in QueryScope's graphical plan viewer, or compare the old plan with the new one.
  • Force the good plan, carefully. Force Plan asks first and shows what it does. It is offered only when your login has ALTER on the database; everything else in the view only reads. The forced plans list shows every forced plan and whether forcing failed.
  • Copy and export. Copy a query's full text, or export a list as CSV.
  • Permissions, spelled out. Without VIEW DATABASE STATE you get the login, the database user and the GRANT statement for your DBA instead of an empty list.
  • Your connection, no polling. QueryScope uses the data source you already have in the IDE, never stores a password and reads Query Store only when you ask.

Included in the QueryScope licence, with the 30-day trial. Works in DataGrip, IntelliJ IDEA Ultimate and other IDEs with Database Tools, builds 252 to 263 (on 2025.1, QueryScope 2026.2.2 still works). The Query Store view needs SQL Server 2016 or later and is tested on SQL Server 2019, 2022 and 2025; Azure SQL Database is not supported by it. Our tests ran on Windows. The Query Store screenshots show the real view with a scripted sample server: the queries and figures in them are sample data, not a live server. Step by step: SQL Server Query Store in DataGrip.

See who blocks whom in SQL Server, without leaving DataGrip

DataGrip shows sessions, but not who blocks whom, and it cannot end a blocking session. Azure Data Studio, where many developers used to look at this, was retired on 28 February 2026. QueryScope 2026.2.1 adds a Blocking tab to its tool window.

  • Live blocking chains. Pick a SQL Server data source and click Start. QueryScope reads the server's session, request and transaction views every 5 seconds, or on the interval you choose, and draws the chains: head blockers at the top, the sessions they block below them.
  • Everything you need to decide. Wait type and time, the locked resource, database, login, host, program, open transactions and how old they are, and the statement each session runs or the last batch it sent. A sleeping session with an open transaction at the top usually means a forgotten COMMIT.
  • Kill the head blocker, carefully. Kill Session... shows who you are about to end (login, host, program, transaction age, how many sessions it blocks) and that its open transaction will be rolled back. It is never offered for QueryScope's own session, and it checks that the session id still belongs to the same login before it runs KILL.
  • Recent deadlocks. The deadlock reports that SQL Server's system_health session already keeps: time, victim, processes, locked objects and statements. Copy the XML or save it as an .xdl file.
  • Permissions, spelled out. Without VIEW SERVER STATE (VIEW SERVER PERFORMANCE STATE on SQL Server 2022 and later) you would only see your own sessions; QueryScope tells you so, with the GRANT statement for your DBA. The same for ALTER ANY CONNECTION, which KILL needs.
  • Your connection. QueryScope uses the data source you already have in the IDE and never stores a password.

Included in the QueryScope licence, with the 30-day trial. Works in DataGrip, IntelliJ IDEA Ultimate and other IDEs with Database Tools, builds 252 to 263 (on 2025.1, QueryScope 2026.2.2 still works). The Blocking view needs SQL Server 2016 SP1 or later and is tested on SQL Server 2019, 2022 and 2025; Azure SQL Database is not supported by it. Step by step: Find and fix SQL Server blocking in DataGrip.

Good to know

  • The MCP tools need IDE 2025.2 or later with the MCP server turned on. They were tested with the official MCP TypeScript SDK as the client; other MCP clients use the same protocol but were not run.

Privacy

QueryScope runs inside your JetBrains IDE. Captured events are processed locally: there is no Karelia Labs capture backend and no telemetry.

It connects to SQL Server through the data source you configured in the IDE, creates a temporary Extended Events session for the capture and removes it when you stop.

Captured queries stay in the IDE until you clear them, or until you export them to CSV or JSON yourself.

The blocking monitor reads session and lock information from the server you choose, through the IDE's own data source. Every statement it runs only reads, except a KILL you confirm. Execution plans are read from files, result cells and Query Store, and drawn offline.

The Query Store view reads the Query Store of the database you choose, through the IDE's own data source, and only when you ask: nothing is read on a timer. Every statement it runs only reads, except a Force Plan or Unforce Plan you confirm.

Purchases, trials and licenses are handled by JetBrains Marketplace under JetBrains' own terms and privacy policy.

Questions: hello@karelialabs.com.

Guides

FAQ

Can my AI assistant change my database through QueryScope?

No. The MCP tools only read. The estimated plan is compiled and never run. The actual plan runs only batches of SELECT queries, once, inside a transaction that is rolled back; anything else is refused before it runs. No tool kills a session or forces a plan.

Which AI assistants work with the MCP tools?

Any MCP client that connects to the IDE's built-in MCP server (IDE 2025.2 and later). We tested with the official MCP TypeScript SDK as the client, in DataGrip 2025.2 and 2026.3. We have not tested JetBrains AI Assistant, Junie, Claude Desktop or Cursor ourselves.

Do the MCP tools cost extra?

No. They are part of QueryScope: $39 a year for individuals and $79 for organizations, with a 30-day trial on JetBrains Marketplace. Without a license or trial, each tool tells the assistant so.

Does QueryScope send my queries anywhere?

No. Capture processing stays in your IDE; there is no Karelia Labs backend and no telemetry.

Which SQL Server versions are supported?

Query capture is verified on SQL Server 2022; other versions are labelled experimental. The Query Store view needs SQL Server 2016 or later and the Blocking view SQL Server 2016 SP1 or later; both are tested on SQL Server 2019, 2022 and 2025.

Does it leave anything on the server?

The capture creates a temporary, bounded Extended Events session and removes it when you stop capturing. A plan you force in the Query Store view stays forced until you unforce it.

Does the Query Store view change my database?

No. Every statement of the Query Store view only reads, except Force Plan and Unforce Plan, which run only after you confirm them and are offered only to a login with ALTER on the database. It never turns Query Store on or changes its settings.

Does the blocking monitor change my database?

No. Every statement of the Blocking view only reads, except the KILL that you confirm.

Do the Query Store and Blocking views work with Azure SQL Database?

No. Azure SQL Database and Azure Synapse Analytics are not supported by the Query Store and Blocking views.

Does QueryScope work on macOS and Linux?

QueryScope runs inside the JetBrains IDE, which runs on Windows, macOS and Linux. Our tests ran on Windows.

Are the Query Store view and the blocking monitor sold separately?

No. They are part of QueryScope: $39 a year for individuals and $79 for organizations, with a 30-day trial on JetBrains Marketplace.

Related tools

More from Karelia Labs

Updated

QueryScope for SQL ServerGet it on JetBrains Marketplace →