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