Run SQL and inspect execution reports
For relational SQL, run a selection or document directly; use Custom Execution to review statement scope, parameters, policies and source-linked outcomes.
When to use this
Choose the SQL range and editor target deliberately. Ordinary execution, reviewed Custom Execution and Terminal Mode follow different paths.
Use ordinary execution for a reviewed query; choose Custom Execution when you need an exact statement scope, bound values, policy controls or a per-statement report.
Before you start
Open the SQL Editor with a reachable target. Custom Execution applies to supported relational targets; MongoDB uses its query-service text path and Redis uses native Terminal Mode.
Steps
- In normal relational SQL mode, select text for an ordinary run, or leave nothing selected to run the document. Check the editor target before Execute Query (Ctrl+Enter / ⌘+Enter).
- To run only the statement containing the caret, choose Execute Statement at Cursor. If no safe statement boundary is found, select one complete database statement instead.
- For review controls, open Custom Execution... from the editor menu or use Ctrl+Alt+Enter / ⌘+⌥+Enter. Check Target, Run scope, the SQL preview, parameters, transaction/error policy and Timeout before Run.
- Inspect returned result tabs and the latest custom-run statement outcomes. A multi-statement or unsuccessful custom run opens the report; otherwise use its result-toolbar button. Double-click a report row to return to source SQL.
How to verify the result
An ordinary run follows the editor’s selected/document scope and shows its usual result feedback. A custom run retains per-statement statuses with source ranges for the latest run.
Troubleshooting
- If the wrong SQL could run, cancel at the target confirmation or Custom Execution review and recheck the editor target, selection and preview before trying again.
- If no cursor statement is found, select exactly one complete database statement. Remove client-only delimiter commands from ordinary selection execution.
- If a report button is unavailable after ordinary execution, use Custom Execution for a structured report; check Tools → Query Execution History for separate query execution records.
- After cancellation or timeout, inspect the report and verify the database state before submitting anything again.
Limits
- Custom Execution and cursor-statement splitting are relational-only. Unsupported client DELIMITER or compound bodies can prevent safe scope resolution; ordinary execution of one complete selection is the separate fallback.
- The structured SQL Statement Outcomes report belongs to custom/cursor-statement execution; ordinary execution does not establish that report. Tools → Query Execution History is a separate record.
- Cancel and timeout request interruption but cannot promise a statement stopped before completing. Script transactions require target support, and some DDL may commit outside the requested rollback scope.