Database import and export

4 minute read · SQL Client

Move the data you actually need, in a format the receiving tool can use. Start by naming the source, destination and scope so you do not confuse a development copy with a live database.

Export a useful, bounded copy

Choose the intended connection and tables, then select SQL, CSV or JSON according to how the result will be used. SQL can include structure and content; CSV/JSON suit selected data workflows. Review available options for DROP statements, auto-increment handling, BLOB encoding and batches before starting.

For large exports, use the supported concurrency and low-memory options and inspect per-table/worker progress. Compression, delimiter, BOM and filename tokens affect how another tool reads the result. A password-protected .vtxp export uses its own encryption path; keep the password separately from the file.

Start with a small fictional table. Open or import the output into a disposable database to verify encoding, column names and row count before relying on a large backup. Creating a file is not proof that every intended table was exported.

Import without confusing the target

  1. Choose an isolated destination and confirm its host/database name.
  2. Inspect the input format and whether it contains schema or destructive DROP statements.
  3. Start the supported import worker/CLI path and watch its progress.
  4. Read errors and cancellation state; a partially completed import is not a successful complete restore.
  5. Query the destination and verify both the data and the app behavior that uses it.

Do not test an unfamiliar import against the database you are currently developing or operating. An import can commit some work before a later statement fails; cancellation should not be assumed to roll everything back.

Keep exported data private

Exports and query results can contain secrets and personal information even when the saved connection password remains encrypted. Choose an authorized destination and sharing method. Record the engine/version and relevant export options when compatibility matters. For schema context, see structure and diagrams.

Choose export options for the receiving tool

Need Useful choice
Recreate tables and example data SQL with reviewed structure/content options.
Open selected rows in a spreadsheet CSV with a delimiter, encoding and optional BOM accepted by that application.
Inspect data in another program JSON with a shape the receiving program can read.
Move a large dataset Review compression, batch size, concurrency and low-memory settings; watch per-table progress.
Protect an export at rest Use the offered password-protected .vtxp path and store its password separately.

BLOB handling, DROP statements and auto-increment options affect restorability. Record those choices with the export. When an import is interrupted, inspect which tables and rows arrived before repeating the file. A fresh disposable destination is usually a clearer validation target than importing twice into an unknown partial state.

Related guides: connections, schema inspection.

Export dialog reference and defaults

Control Meaning Initial choice
SQL / CSV / JSON Output format. SQL can reconstruct supported schema and data; CSV/JSON represent data. SQL.
Table checkboxes Choose the tables included in the export. The tables selected when the dialog opened.
S / C / D per table Include Structure, Content or DROP statements for that table. These are independent inclusion flags. Follow the current export configuration.
Structure Include table definitions in SQL output. On.
Content Include row data. On.
DROP TABLE syntax Include statements that remove matching destination tables during a restore. Exporting does not drop the source table; executing the output can drop the destination table. On — review this before restoring.
Auto increment value Include the current identity counter where supported. Off.
Output BLOB fields as hex Represents binary values as hexadecimal SQL literals. On.
New INSERT every Target batch size for generated INSERT statements, in KiB. 2048 KiB.
Table concurrency Number of tables processed concurrently. More concurrency can increase server load. 3.
Low memory export Uses the available lower-memory export path for large data. Off.
Output compression Compresses the output with the selected supported format. None.
Delimiter CSV field separator; match the program that will import it. Comma.
Add UTF-8 BOM Adds a byte-order mark for consumers that need it to detect UTF-8. Off.
Filename Destination name; the field's hint shows supported filename tokens. Generated from the selected format/tables.
Password (optional) / show-hide Protects output when supported by the export flow. Show/hide changes visibility of your input, not its value. Empty.
Export / Cancel Starts the configured job or closes the dialog. Inspect progress and the final result.

For an import, verify file, format, destination connection/table, column mapping and handling of headers before starting. A partial import is not automatically safe to rerun into the same table. Read a small sample and count rows afterward. Keep the original export until this check succeeds. See database connections.

Updated Sep 21, 2026 · Need a hand?