Skip to content
← SQL Tools
🔒 Runs in your browser 🚫 No data uploaded ✓ Free, no login

SQL Admin Queries

DBA query generators for SQL Server administration and performance diagnosis. Parameterized for your environment — fill in the options and run immediately.

🔍
Find Blocking Generator
Generate blocking analysis queries using sys.dm_exec_requests. Identify head blockers, blocking chains, wait types, and blocking SQL text.
Open tool →

Why Use Admin Query Generators?

Database administrators frequently need to diagnose performance issues under time pressure. Manually assembling sys.dm_exec_requests queries with the right columns, joins, and filters is tedious and error-prone — especially when a production system is experiencing blocking or deadlocks.

These generators produce parameterized, copy-ready SQL Server queries that target the most common admin scenarios. Every generated query uses dynamic management views (DMVs) and is read-only, so it is safe to run against production instances without risk of data modification.

When to Use These Tools

Blocking analysis is most valuable when users report slow queries, timeouts, or application hangs. The Find Blocking Generator builds queries that surface head blockers, waiting sessions, wait types, and the exact SQL text involved — giving you a clear picture of the blocking chain without manually joining multiple DMVs.

If you are triaging an incident, start with the blocking generator to identify the root session, then use the SQL Formatter to make the captured query text readable for review.

Related SQL Tools

Frequently Asked Questions

Are these queries safe to run on production?
Yes. Every generated query uses only read-only SELECT statements against SQL Server dynamic management views (DMVs). No data is modified, no locks are acquired, and no schema changes are made.
Which SQL Server versions are supported?
The generated queries use sys.dm_exec_requests and related DMVs, which are available in SQL Server 2005 and all later versions including Azure SQL Database.
Do I need special permissions to run blocking queries?
You need VIEW SERVER STATE permission to query most dynamic management views. This is a read-only permission that most DBA roles already have. Check with your database administrator if you receive a permissions error.
Does any data leave my browser?
No. All query generation happens entirely in your browser using JavaScript. No SQL text, table names, or connection details are sent to any server.