SqlOtter
← All documentationAssistance & preferences

Assistance & preferences

Check target and impact before acting

Check connection, database, Schema and editor targets, then follow the specific preview, confirmation, cancellation and verification path for SQL, structure changes, restore or sharing.

What this feature does

Environment labels and database tabs help you locate your work. This guide follows actual SQL-target mismatch, SQL Preview, portable-restore acknowledgement and explicit team-publish flows, explaining where each action starts and where it can stop.

When to use it

Before submitting consequential SQL, applying a structure draft, restoring or migrating data, sharing a document, or deciding whether to retry after a failure or cancellation.

Complete Restore Database window with mysql/d1 source, OceanBase Oracle/TEST5 target, 37 tables and 4457 rows, Findings, checked review acknowledgement and Cancel/Confirm Restore.
The complete restore review shows mysql/d1 → OceanBase Oracle/TEST5, 37 tables / 4,457 rows and MIG-321/MIG-110 findings with truncated text. “No blocking findings” and the checked review acknowledgement appear above Cancel / Confirm Restore. This is the captured setup before final confirmation. Database icons were updated to the current two-letter marks.

Before you start

Use an authorized target and an approved recovery process. For inspection, keep existing safe previews or drafts and stop before execution/upload. Know whether you are looking at the source, the destination, a selected object, a cached view or the editor target. Availability and transaction support depend on the target and desktop build.

Default shortcuts and operation controls

Check the owning window and focus before a key or click. Configurable defaults, fixed dialog keys and buttons have different scopes.

Default shortcuts and operation controls
ActionWindows / LinuxmacOSFocus and effect
Inspect environment templateClick selectorClick selectorConnection form: Auto / Local / Test / Production; no dedicated default binding.
Choose database / SchemaClick selector or tabClick selector or tabCheck the selected namespace and reread the current editor target; switching tabs can refresh it.
Open SQL EditorCtrl+Shift+U⌘+Shift+UQuery Editor and Analyzer in the active workspace/database; opening can refresh the editor target.
Execute selection / documentCtrl+Enter; focused Ctrl+Return⌘+Enter / ReturnSQL Editor: selected text, otherwise the whole document. Direct execution, not a preview shortcut.
Alternative ordinary runCtrl+Shift+Enter / Return⌘+Shift+Enter / ReturnConfigured alternate run actions use the same current editor and ordinary execution scope.
Execute Statement at CursorCtrl+Alt+Shift+Enter⌘+⌥+Shift+EnterRelational editor outside Terminal Mode; caret determines one statement independently of selection.
Floating Execute: short clickClickClickUses ordinary selection/document execution; it can submit SQL immediately after applicable target checks.
Floating Execute: holdHold about 0.6 sHold about 0.6 sSupported relational target: caret statement; release does not also run the whole document.
Open Custom Execution...Ctrl+Alt+Enter⌘+⌥+EnterCurrent SQL Editor: opens options. Nonblank selection defaults to Selected text, otherwise Entire script.
Confirm SQL TargetYes / No buttonsYes / No buttonsOnly for a detected editor/active-tab mismatch; No is default. Yes retains the editor target.
Accept custom execution optionsRun / Cancel buttonsRun / Cancel buttonsRun submits reviewed scope/options after applicable target checks; Cancel prevents this submission.
Open query-plan optionsContext menuContext menuShow Estimated Query Plan on supported targets; no dedicated default assigned by this action.
Allow Actual planAcknowledgement checkboxAcknowledgement checkboxPlan options: explicit risk acknowledgement enables actual-plan Run; the SQL really executes.
Local:SQL ValidationCtrl+Alt+V⌘+⌥+VLocal parser check in SQL Editor; separate from the AI syntax-check command and not proof of safety.
Check Target MetadataContext menuContext menuChecks references against editor-target metadata; can read the server. No dedicated default.
Cancel QueryProgress buttonProgress buttonCaret/custom execution: requests driver interruption and stops later statements; does not undo prior commits.
Edit table structureAlt+Enter⌥+EnterSelected/current table action: check database, Schema and table before changing the draft.
Prepare structure Save ChangesCtrl+Enter / Return⌘+Enter / ReturnFixed structure-dialog invoke action, also the Save Changes button; prepares SQL Preview when commands exist.
Execute SQL PreviewCtrl+Enter / Return⌘+Enter / ReturnFocus in the preview SQL editor: activates enabled Execute. This accepts the caller’s operation, not another preview.
Cancel SQL PreviewCancel buttonCancel buttonRejects this preview before its caller executes it. Cancel is the designated default button; do not infer every focused Enter key cancels.
Open Restore DatabaseCtrl+Alt+Shift+R⌘+⌥+Shift+RDatabase menu on the intended destination connection; choose an existing archive and review setup before confirmation.
Review target cleanup optionsCheckboxesCheckboxesDrop Existing Tables and Empty Target Database have different scopes and are mutually exclusive.
Acknowledge restore findingsReview checkboxReview checkboxCurrent restorable portable report plus acknowledgement gates the final action; changed inputs require renewed review.
Confirm Restore / Start Online MigrationCtrl+Enter / Return⌘+Enter / ReturnFixed restore-setup invoke action clicks the enabled final button. This can start writes; it is not a preview shortcut.
Cancel structure / restore setupEscEscFixed shared button-bar cancel in these dialogs; unsaved structure can ask Save/Discard/Cancel. Not a running-operation rollback.
Open team-library publication entryContext menuContext menuPublish Current SQL to Team Library... opens the team tab for a nonempty document; no dedicated default.
Publish Current SQLButton in selected libraryButton in selected libraryWritable team library and full editor document: opens the explicit upload warning; selection alone does not restrict text.
Accept / cancel publish warningYes / Cancel buttonsYes / Cancel buttonsNew publication: Cancel is default; Yes opens required-title metadata. Update has its own warning and upload path.
Finish Publish Shared QueryOK / Cancel buttonsOK / Cancel buttonsNonblank Title is required; final OK uploads the captured document. Cancel beforehand prevents the new upload.
AI Copy / Send / ReplaceCode-block buttonsCode-block buttonsManual text actions, no dedicated default. Extra insertion confirmation depends on dangerous template plus classified risk.
View Last SQL Execution ReportContext menuContext menuEnabled when statement outcomes exist; inspect completion/cancellation/rollback messages separately from cached results.
Query Execution HistoryCtrl+Shift+H⌘+Shift+HOpens execution records for target, SQL and feedback review; records are not an undo or independent readback.
  • Settings → Shortcuts can replace configurable defaults. Fixed dialog chords and mouse gestures are owned by the specific window; the menu remains the clearest way to inspect an action.
  • On macOS, ⌘ is Command and ⌥ is Option. The reviewed portable-Ctrl bindings provide macOS modifier compatibility; this table shows the Command form. Source inspection is not physical-key acceptance.
  • Ctrl/⌘+Enter can run SQL, prepare structure preview, execute that preview or confirm restore depending on the focused window. No general safety hotkey or universal typed-name prompt is implemented.

How to use it

  1. Identify workspace, actual connection, database, Schema and object; compare the active tab, editor target and SQL qualifiers.
  2. Choose the intended scope before a run. Ordinary execution is direct; Custom Execution, structure preview and restore review have their own controls.
  3. Read the prompt that actually belongs to this operation, including cleanup options or the receiving team library. Missing prompts do not establish safety.
  4. Use Cancel/No before submission if unsure. After a start, wait for cancellation/completion and inspect partial commits before retrying.
  5. Verify the actual destination independently; keep previews, execution records and release evidence distinct.

Start with the action’s actual destination

Before a change, identify the workspace window, connection, database, Schema and object. For publishing, the destination is a team library rather than a database.

  1. Read the window title and the active database tab; distinguish the selected tree object from an already open content tab.
  2. For SQL, also read the SQL Editor target and the qualified names in the text. For structure changes, inspect the editor’s database, Schema and table.
  3. For restore or migration, compare source and destination separately. Stop before Execute, Run, Confirm Restore, Start Online Migration or the final publish form if any part is unclear.
  • Names, colors and environment labels help orient you; they do not establish server identity, permissions, a read-only connection or a recovery plan.
  • The restore screenshot shows one workflow’s target, findings and confirmation controls. It does not establish a universal SqlOtter safety dialog.

Check the connection’s environment template

In the connection form, inspect the workspace-template selector and the actual database endpoint before connecting or saving a profile.

  1. The selector offers Auto with its resolved template, or an explicit Local, Test or Production choice. Read the endpoint and database type alongside it.
  2. Auto classifies the host using local/test/other heuristics; SQLite is classified Local, and SSH uses the database-side host. It does not discover the server’s deployment role.
  3. An explicit template overrides automatic classification. If the label disagrees with the endpoint you intended, return to connection setup and resolve the discrepancy before a consequential action.
  • LOCAL, TEST and PROD are classifications, not separate credentials or enforced SQL permissions. A database reachable through a local address can still hold important data.
  • The ordinary connection tag color has its own selector. A green tag is not proof that the connection uses the Local template.

Read the title and the workspace’s top line correctly

The window title identifies the workspace, connection and database. Its tooltip can add the active connection’s environment prompt.

  1. Read the text even when the title is visually shortened. Compare it with the database tab and the SQL Editor target.
  2. The thin gradient line at the top of the workspace summarizes open database tabs: Production takes priority over Test, then Local.
  3. A Production-colored top line can remain while a Local tab is active because another open tab is Production. Use the action’s target for the final decision.
  • The workspace-wide line and the active connection label have different scopes. Neither automatically blocks every risky action.
  • A named workspace organizes local working state; its name does not change database permissions or make database changes reversible.

Understand what database-tab isolation preserves

Database tabs retain their own connection/database state, object views and saved tab context inside a workspace.

  1. Activate the intended database tab, then wait for its tree, selectors and open views to settle before choosing an action.
  2. The current shared SQL Editor target is refreshed when a database tab changes. Opening or reopening the editor also refreshes it from the active tab.
  3. After switching, reread the target and SQL rather than relying on the previous editor position or expecting a mismatch warning.
  • Tab isolation organizes UI and session state. It does not create a server sandbox, a separate copy of the data or a transaction per tab.
  • Two tabs or workspace windows can reach the same server objects. Changes made through one can be visible through the other.

Check Schema and qualified object names separately

On targets with Schema namespaces, the Schema selector changes which objects and saved views are shown.

  1. Choose the intended database and Schema, then inspect the selected table’s context. Same-named objects can exist in different Schemas.
  2. Compare that context with the SQL Editor target, the structure editor’s target and any database/Schema qualifiers written in the SQL.
  3. If these disagree, cancel the pending operation and reopen the intended object or editor context before reviewing again.
  • Changing the selector does not rewrite every qualified name in SQL. An explicit qualifier can address an object outside the currently displayed tree.
  • Schema meaning and availability depend on the engine. Do not infer another engine’s namespace model from a familiar name.

Read the SQL Editor target before choosing a run scope

The editor carries an execution target containing connection, database and Schema; its display includes the environment label.

  1. Open the SQL Editor with Query Editor and Analyzer, default Ctrl+Shift+U / ⌘+Shift+U, in the intended database context.
  2. Read the target text and its available tooltip, then inspect the current selection and qualified names. Restored SQL or a loaded library script still needs this review.
  3. If the target has disappeared, stop and reopen the intended context. The execution layer reports an unavailable target rather than treating a different connection as its replacement.
  • The current shared-editor refresh paths mean the target is not a permanently pinned destination. Session restoration and later UI changes can present different contexts.
  • Loading text, inserting AI text or restoring a workspace is not permission to execute it. Check again at the run action.

Handle Confirm SQL Target when it actually appears

At execution, the editor compares its target with the active database-tab snapshot. A difference in location, including Schema, can open Confirm SQL Target.

  1. Read both “This editor targets” and “The active database tab is” in the prompt. The question asks whether to execute against the editor target.
  2. Choose No to stop this submission; No is the default. Return to the intended tab/editor and review again rather than approving an unexpected destination.
  3. Choose Yes only for an already reviewed operation whose intended destination is the displayed editor target. It continues to that target; it does not rewrite the SQL to the active tab.
  • No target produces No SQL Target. Matching locations do not open this mismatch prompt; neither does the comparison when no active snapshot is available.
  • This is a location check, not typed-name confirmation or classification of every dangerous statement. Switching database tabs normally refreshes the shared editor first, so a switch alone need not produce it.

Recognize ordinary execution as a direct run

For relational SQL, Execute Query uses selected text when there is a selection; otherwise it submits the whole document.

  1. Before clicking Execute or using Ctrl+Enter / ⌘+Enter, check exactly what is selected. Without a selection, SQL elsewhere in the document is included.
  2. The context menu says Execute Selected SQL or Execute Query accordingly. Ordinary execution does not open the Custom Execution scope/preview dialog.
  3. A separate default-No Database operation confirmation can appear for detected database-level operations. Read any prompt, but do not use its absence as permission to run.
  • The database-operation prompt is driven by detected database operations. It is not a universal warning for UPDATE, DELETE, table DDL or every qualified target.
  • Ordinary multi-statement execution has its own error/continue path. It does not inherit the custom dialog’s transaction policy. Native MongoDB and Redis/Terminal workflows have separate execution semantics.

Run the caret statement only when that is intended

Execute Statement at Cursor is a separate relational action outside Terminal Mode; it uses the caret independently of a selection.

  1. Place the caret in the complete intended statement and inspect its boundaries and target. Use the context menu or Ctrl+Alt+Shift+Enter / ⌘+⌥+Shift+Enter.
  2. Holding the floating Execute button for about 0.6 seconds invokes the same caret-statement action; a short click retains selection/document execution.
  3. If no statement can be identified, read the visible warning and choose a complete statement deliberately. Do not change to whole-document execution merely to bypass the finding.
  • The long-press handler suppresses a second ordinary run on release. Neither the caret action nor long press opens an optional scope dialog first.
  • The caret action uses per-statement commit and stop-on-error options. Resolving a statement boundary does not establish its safety.

Review Custom Execution before Run

Use Custom Execution... from the SQL Editor context menu, or Ctrl+Alt+Enter / ⌘+⌥+Enter, when you need an explicit scope and options.

  1. Read Target and Run scope. A nonblank selection defaults to Selected text; with no selection or only whitespace selected, the default is Entire script, not the caret statement.
  2. Review the read-only SQL preview, bound parameter values, Transaction, On error and Timeout. Choose Current statement yourself if that is the intended scope.
  3. Cancel closes the options dialog without submitting SQL. Run accepts these options, then the target-mismatch check still applies before execution.
  • Initial options are Commit each statement, Stop at first error and No timeout (0 seconds). None is an automatic dry run.
  • If statement splitting cannot resolve the requested scope, resolve the actual SQL/boundary issue. A preview describes the submitted text, not predicted affected rows or server acceptance.

Choose the transaction policy with its limits in view

Custom Execution exposes transaction choices where the target supports the relational execution path.

  1. Commit each statement commits completed statements separately. A later error or cancellation cannot undo earlier commits.
  2. One transaction for the script requires a supported target and Stop at first error. Continue after errors is unavailable with this policy.
  3. Review policy rejections for explicit transaction control, database-level operations, nontransactional statements, session/procedure operations and DDL whose rollback the target does not declare.
  • For an accepted script-transaction run, the worker attempts rollback on failure/cancellation and reports rolled-back outcomes. This is specific to that execution path and eligible SQL.
  • Do not transfer that promise to ordinary execution, structure changes, restore/migration or every engine. Some DDL commits implicitly.

Distinguish Cancel Query from completed rollback

Caret-statement and custom relational execution expose Cancel Query in the progress UI, with timeout using the same cancellation mechanism.

  1. Use Cancel Query to request interruption and stop later statements. Keep the progress state visible until the worker finishes.
  2. Driver cancel/interrupt support varies. The active statement can complete after a cancel or timeout request.
  3. Open View Last SQL Execution Report and inspect statement status, errors and messages, including completed-after-cancel/timeout or rolled-back outcomes.
  • Closing an options dialog before Run prevents that submission. Cancel Query after execution starts has a different effect and is not an undo command.
  • A timeout is an interruption request, not a guaranteed deadline or rollback. Independently inspect the target before retrying a partially completed script.

Treat an actual query plan as execution

Show Estimated Query Plan opens the plan options where the target exposes a supported plan capability.

  1. Review Target, Run scope and Plan type; a plan request requires exactly one statement. Estimated plan is the initial plan choice.
  2. Where Actual plan (runs the SQL) is offered, such as PostgreSQL, selecting it requires “I understand an actual plan executes the SQL and may change data.”
  3. Leave the acknowledgement unchecked and Cancel if the statement is not approved for real execution. Run becomes available for an actual plan only after acknowledgement.
  • An actual plan executes the SQL to collect runtime information. Calling an action “plan” or “diagnostic” does not make it read-only.
  • Estimated-plan support is target-specific. Neither a plan nor local parsing establishes safe SQL, complete impact or a recovery guarantee.

Review the table-structure SQL Preview

Select the intended table and open Edit table structure, default Alt+Enter / ⌥+Enter. Verify database, Schema and table before editing.

  1. Inspect the pending field/index/relationship changes. Save Changes, or the structure dialog’s fixed Ctrl+Enter / ⌘+Enter, prepares the save and opens SQL Preview when commands exist.
  2. Read the complete generated commands and object qualifiers. This structure-save preview is editable; any edited text becomes the input for the execution plan.
  3. Use Cancel in SQL Preview to return without executing that preview. Execute, or Ctrl+Enter / ⌘+Enter while its editor is focused, accepts it and starts the save path.
  • The same key combination has different effects in the two windows: prepare Save Changes first, confirm Execute second. Do not press it repeatedly while dialogs are appearing.
  • This caller does not request dangerous-template mode or a target-name echo. A Production label does not add typed confirmation to every structure save.

Separate an unsaved structure draft from applied DDL

After Execute in the structure preview, the editor prepares and applies the plan through the selected target’s query service.

  1. During the background save, editing controls are disabled; success closes the editor and can show target-specific warnings and refreshed object state.
  2. A failed SQL batch can show per-command results, followed by the error. Preserve the failed command and inspect earlier commands before retrying.
  3. Closing an unsaved structure editor can show Save, Discard and Cancel. Discard abandons the pending UI draft; it does not reverse already executed DDL.
  • A SQL Preview is not a dry run against the server. Engine and DDL transaction behavior determine what can remain after an error.
  • Independently reload structure/DDL and inspect fields, indexes and dependencies. A closed dialog or success toast alone is not complete equivalence verification.

Open restore from the intended destination

Restore Database belongs to the current destination connection. The archive describes the source and does not select the destination for you.

  1. Activate the intended destination database tab and inspect connection/database/Schema before Database → Restore Database, default Ctrl+Alt+Shift+R / ⌘+⌥+Shift+R.
  2. Select an already available archive directory. In Restore Database, compare archive information, checked source tables and Target Database / Target Schema or Target Key Prefix where offered.
  3. For online migration, review both endpoint/workspace selections and their displayed namespaces; the chosen open target can have a fixed namespace. Cancel if either side is wrong.
  • Opening setup or reading a preview is distinct from Confirm Restore / Start Online Migration. Do not start a backup, restore or migration just to obtain a screenshot.
  • Archive compatibility, target permissions and object support require their own review. A matching source name does not establish a safe overwrite destination.

Read the current portable-restore findings and acknowledge them

Cross-dialect archive restore displays an inline Migration Preview with target mappings and findings; other archive paths can open a separate review.

Complete Restore Database window with mysql/d1 source, OceanBase Oracle/TEST5 target, 37 tables and 4457 rows, Findings, checked review acknowledgement and Cancel/Confirm Restore.
Drop Existing Tables, create-missing-database and uppercase conversion are checked; Empty Target Database is unchecked. These are the captured choices. Findings, the checked review acknowledgement and Cancel / Confirm Restore remain visible; execution is not shown. Database icons were updated to the current two-letter marks. Historical screenshot; UI icons have been updated.
  1. Inspect selected tables, target names/types, warnings, omissions and blockers. Review supported options and any available resolution controls; do not treat retained source metadata as executable target SQL.
  2. The visible “I have reviewed the findings and restore options” checkbox belongs to the current report. Confirm Restore is enabled only with a restorable report and acknowledgement.
  3. Changing selected tables, destination or relevant options refreshes or invalidates the review. Wait for the current report and review again rather than relying on an earlier tick.
  • Acknowledgement records your review; it does not prove all values/objects will transfer or that the target is empty. Blocking findings must be resolved through the supported path.
  • This checkbox is not a universal typed-name gate. Existing-target confirmation described for online migration is a separate path, not a promised popup for every archive restore.

Inspect destructive restore options before the final action

Restore and migration expose action-specific options whose scope can exceed the currently selected source tables.

  1. Read Drop Existing Tables and Empty Target Database separately. The former concerns selected same-named targets; the latter removes tables/collections across the destination scope and the two choices are mutually exclusive.
  2. An ordinary archive carrying structure can initially select Drop Existing Tables. Create target database if it does not exist is initially checked where creation is supported; online mode disables that creation choice.
  3. Recheck uppercase/original-source names and destination Schema/prefix after changing options. In the restore setup, Ctrl+Enter / ⌘+Enter can invoke the enabled Confirm Restore or Start Online Migration button.
  • The final restore button is also configured as the dialog default. Do not use Enter or the invoke chord to dismiss or merely inspect a ready-to-run window.
  • Online migration inspects the selected target and adds an explicit existing-target warning when contents are found. This does not provide an empty-target or rollback guarantee for all restore modes.

Keep setup cancellation separate from an interrupted restore

Cancel in restore setup returns before starting the restore worker. After confirmation, the progress dialog has its own cancellation warning.

  1. If still reviewing setup, use Cancel or its fixed Esc action; do not confirm merely to reach a progress screen.
  2. After a real restore starts, cancelling progress asks whether to interrupt an operation that may be incomplete. Read the source/target summary and warning before deciding.
  3. Wait for cancellation/completion feedback, then independently inspect destination objects and data before retrying or cleaning up.
  • Portable restore attempts rollback/cleanup on its supported error/cancel paths, but committed changes and engine-specific DDL can remain. Other restore modes and online migration have different commit boundaries.
  • Cancel is not “restore the original database.” Neither progress percentages nor a completion summary prove complete fidelity, consistent snapshots or all-value equivalence.

Choose the team library and review the whole document

Publish Current SQL to Team Library... opens the team-library tab; opening that tab is distinct from publishing.

  1. Use the SQL Editor context-menu entry with a nonempty document, or open Shared Team Library in the SQL Script Library dialog.
  2. Check the signed-in account, selected team library and role. Owner/editor can publish; database connection permissions are a separate concern.
  3. Review the entire editor document, not only a selection. Remove passwords, tokens and private values before deciding to share. The environment field is classification metadata, not an access restriction.
  • Browsing a signed-in team library can contact the API for lists and SQL. It is not an offline local library.
  • All current members can read published SQL. Workspace/tab isolation does not make a team publication private to that workspace.

Follow the explicit publish warning and metadata form

In the selected team library, Publish Current SQL captures the current document and opens Publish SQL to Team Library.

Complete SQL Script Library on Shared Team Library TTT (owner), with the Publish SQL to Team Library upload warning and complete Cancel/Yes controls.
Shared Team Library has TTT (owner) selected. The complete warning says publishing uploads the current SQL text and asks for a passwords, tokens and private-data check; Cancel / Yes remain visible. The background SELECT previews an existing saved entry, and PROD is that entry’s metadata. The still stops before Yes. Historical screenshot; UI icons have been updated.
  1. Read the upload warning. Cancel is the default and stops before upload; Yes proceeds to Publish Shared Query rather than immediately completing the new publication.
  2. In Publish Shared Query, Title is required and Tags is optional. OK remains disabled until the title has nonblank text; Cancel here also stops the new publication.
  3. Only final acceptance calls the create-publication API. Review the refreshed library entry afterwards; a failed request needs verification before retrying.
  • Update Shared Query has its own explicit upload warning and changes the selected saved query/revision. Closing the library window later does not retract an upload already accepted.
  • The API enforces membership and write roles but stores the submitted SQL; it does not automatically redact secrets or certify SQL safety. Loading a shared query into an editor does not execute it.
  • Choosing Yes also confirms permission from the rights holders, including an employer or client where applicable. Ownership stays with them; the limited permission covers operating the selected library and members reading, copying and editing for work. See Team Library terms in the website footer. Earlier screenshots retain the warning shown in their captured build.

Review AI text before insertion and again before execution

AI code-block Copy, Send to SqlEditor and Replace SqlEditor content are manual text actions with different scopes.

  1. Copy keeps a separate clipboard draft. Send inserts text; Replace replaces the editor document or current Terminal Mode command. Review the destination before either change.
  2. Additional Review AI SQL / High-Risk AI SQL appears only when the operation resolves to a dangerous workspace template and the risk classifier requires confirmation.
  3. For high/critical classification the question defaults to No; other confirmation-required classifications can default to Yes. After insertion/replacement, read the refreshed active editor target and exact text before any execution.
  • A mentioned object can differ from the active editor destination. Insert/replace refreshes the editor target; it does not execute the generated SQL or terminal command.
  • No extra prompt on a Local/Test template or an unflagged draft does not establish safety. Risk labels are fallible findings, not permission, and this is not a universal typed confirmation.

Verify the outcome before retrying or proceeding

Use evidence from the actual operation and a fresh destination check; a preview and an execution result answer different questions.

  1. For SQL, inspect View Last SQL Execution Report where available and Query Execution History, default Ctrl+Shift+H / ⌘+Shift+H. Match the target, submitted text and statement statuses.
  2. For structure or restore/migration, independently reload the intended destination’s metadata and inspect required objects, constraints and representative values. Counts alone do not prove full equivalence.
  3. For publishing, inspect the selected library’s refreshed SQL and metadata. If the result is ambiguous, establish what already completed before another Run, restore or publication.
  • Execution records, cached result grids and restored sessions are not a fresh independent database read or a backup. Workspace save is not a database commit.
  • Use approved read-only checks and the recovery process for the actual engine and workflow. The website’s source review, supplied stills and browser QA do not establish physical-key, live-workflow or release acceptance.

What to expect

You can identify which destination and text/object scope will be submitted, recognize the exact confirmation boundary and distinguish a cancelled draft from a partially completed operation.

Limits and safety

  • No universal typed confirmation, destructive-SQL blocker, affected-row forecast or rollback guarantee is provided. A parser, risk label or environment color cannot prove safety.
  • Database-tab/workspace isolation concerns UI and local session context; it does not isolate server data or permissions. The current shared editor refreshes its target on database-tab changes.
  • Normal execution can run the entire document without a scope dialog. Per-statement commits, implicit DDL commits and driver cancellation limits can leave changes behind.
  • SQL Preview is editable in the structure-save path. Its Execute confirms an operation; Cancel afterwards is not a database undo.
  • Portable acknowledgement and online existing-target checks are specific gates. Restore/migration may be incomplete after errors/cancellation and require independent inspection.
  • Team publishing shares the full document with current members after explicit acceptance; the API does not redact it. AI insert/replace confirmation is conditional and separate from execution.

If something goes wrong

  • Unexpected target: choose No/Cancel, reopen the intended tab/object and reread editor target and SQL qualifiers; a tab switch alone may refresh the target without a mismatch prompt.
  • No SQL Target or target unavailable: resolve/reopen the intended connection context rather than trying another destination merely to make the command run.
  • Restore action disabled: wait for the current preview, resolve blockers and review/acknowledge again after changing inputs. Do not bypass a stale report.
  • Cancel/timeout did not undo the change: inspect statement outcomes and the actual destination; completed statements or DDL may already be committed.
  • No AI insertion warning: confirm the environment and inspect the text; the extra gate requires both dangerous-template classification and qualifying SQL risk.
  • Publish failed or result unclear: inspect the selected team library before retrying; closing the dialog does not retract a completed upload.