Databases & SQL

Import and export data

CSV, JSON and Excel: import with mapping and previews, export loaded data or all rows as CSV/JSON.

In this guideBefore you start · PremiumImport with explicit mappingLoaded data or the complete resultDeliver loaded data in Excel, CSV or JSONIf the data does not match

Before you start · Premium#

This guide covers tools included in Code Weaver Premium. Sign in to your account in the IDE and check that Premium is active. Without Premium you can still browse, search, edit and save your files.

Database: schema, SQL worksheet and results in one workspace.Code Weaver · Windows

Import with explicit mapping#

Import does not automatically create or alter tables. The panel handles up to 4 MB, 2,000 rows and 500 columns. Empty CSV fields are empty strings; use JSON or Excel when NULL must be distinct. Excel formulas are rejected, not executed.

  1. Open Import / export and select the file, format, delimiter or Excel sheet.
  2. Check headers, detected types and preview rows.
  3. Map columns to the destination table and generate the INSERT preview.
  4. Review SQL and row count before applying the transactional group.

Loaded data or the complete result#

The panel’s export covers currently loaded data. For a larger table or query, open Paged data and choose Export all rows as CSV or JSON. The job shows progress and cancellation; a partial file is not published as complete.

Full export reads successive pages. Concurrent changes or non-unique ordering can change the result between pages. Use an appropriate transaction or native database tools for a consistent snapshot.

Deliver loaded data in Excel, CSV or JSON#

Prerequisites: Premium, an open connection and a query result or table already loaded in the grid. After an import, read the data from the database again before exporting: the import file preview is not the export source.

  1. In the SQL worksheet, run a SELECT with filters and ORDER BY suited to the report. Check columns, values and loaded rows; to use the grid instead, open Edit data, choose the table and select Load data.
  2. Open Import / export and choose Excel .xlsx under Data format. In Export loaded data, choose Export source: Current query result or Table loaded in grid.
  3. Enter Exported filename and select Download XLSX. If the button is disabled after a Windows-1252 CSV import, temporarily switch to CSV, select UTF-8 and then return to Excel .xlsx: Windows-1252 is an import-only choice.
  4. Check the message showing the exported row count and open the .xlsx file with a compatible tool. In the Data worksheet, compare headers, count and values with the source, including accents and commas in names.
  5. To deliver the same data as CSV or JSON, change Data format and use Download CSV or Download JSON without changing source. For CSV, choose the export delimiter and encoding; for JSON, check columns and rows. Read each file before treating the report as complete.

If the data does not match#

First check the active connection, loaded filter and ordering. Verify CSV encoding and delimiter, XLSX sheet and mapping. A limited result does not mean the full table has only those rows. Binary values and LOBs may need explicit conversions.

Open original image ↗