Development · 4 steps

Check a database CSV export before using it in a report

Inspect scope, delimiters and values with a disposable sample.

Explore the related profiles and plans

Source-based steps · A trial for you, not our hands-on product test

Goal and scope of this exercise
The goal of your trial

What you will find out

A small export with a documented row count and interpretation rules.

An editorial walkthrough, not a completed hands-on test. Use a copy or fictional data. Check the exact edition and current provider documentation.

Use a disposable data source

Use fictional rows, not a production database. Include a missing value, an accent, a decimal, a date and a value with a leading zero. Decide whether you need selected rows, a filtered result or the whole table.

Make the scope explicit

DBeaver supports exporting query results, tables and editor data. Its export settings distinguish selected rows and how data is read. Review that scope and the destination filename before exporting.

Inspect the file in two ways

Read the CSV as text to check delimiter, encoding and quoting. Then import it into your intended spreadsheet using deliberate column types. Check leading zeros, dates, decimals and missing values rather than trusting automatic conversion.

Record a reproducible handover

Count rows and compare the known sample values. Record the selection, output format and import settings so a colleague can reproduce the result. Do not describe a data export as a complete database backup.

Examples, checklist, notes and sources
Work through a concrete example

Eight fictional customer rows that must survive a CSV round trip

The example checks whether a DBeaver CSV export keeps the intended rows, leading zeros, dates, decimals and empty values when you open it in LibreOffice Calc.

Official documentation reviewed: 2026-12-02. Run the trial below yourself; this is not a completed product test report.

Choose your starting point

You need only some of the rows you see in a query result.

Start the export from the result grid and choose Use fetched rows or Selected rows only on purpose.

Those options exist only for query results and the Data Editor. An export started from Connections or an SQL script always reads directly from the database.

You need the whole table for a report.

Right-click the table under Connections, choose Export Data, and turn on Select row count so you have an expected total.

The count gives you a number to compare with the file. DBeaver notes that counting rows may cause performance issues in some cases, which is fine on a small demo table.
A demo table with eight tricky rows

Prepare

  • A disposable table demo_customers in a local test database, with columns id, customer_code, name, city, joined_on, balance and note.
  • Eight invented rows, including customer_code 00420, name 'Demo Tester', city 'Zürich-Test', joined_on 2026-03-04, balance 1234.50, and one row where note is NULL.
  • A saved filter query that returns exactly five of the eight rows, so you can test a partial scope.
  • An expected-values list in the worksheet: 8 and 5 rows, plus the exact text of each tricky value.

Run the trial

  1. Run the filter query, right-click the result grid, choose Export data and pick CSV.
  2. On the extraction page, choose the scope you intend and write it down: Use fetched rows, Selected rows only or Selected columns only.
  3. In the CSV settings, set Delimiter, Header (top), Quote character and NULL string. Use a visible NULL string such as NULL_TEST, so a missing value cannot pass for empty text.
  4. Choose the Encoding, for example UTF-8, note the output folder and filename, and finish the export.
  5. Open the CSV in a plain text editor. Check the delimiter, the header line, the quotes around text values and the NULL string.
  6. Open the same file in LibreOffice Calc. In the Text Import dialog, set Character set, the separator and String delimiter, give customer_code the column type Text and joined_on the type Date (YMD). Count the rows and compare every tricky value. Repeat with a full-table export and compare with 8.

Check the result

  • The filtered export has exactly 5 data rows and the full export 8, each with one header line.
  • 00420 is still 00420 in Calc.
  • Zürich-Test shows the ü correctly in both the text editor and Calc.
  • 2026-03-04 reads as 4 March 2026, and 1234.50 is a number, not text.
  • The NULL row shows your NULL string, not an empty cell that looks like empty text.

Stop or recover when

  • Stop if real customer or production data appears in the export. Delete the file and go back to the demo table.
  • Stop if the row count differs. Recheck the extraction scope before you touch any spreadsheet setting.
  • Do not hand the CSV over as a database backup. It is a data export of the chosen rows and columns.

Take the trial worksheet with you

Download a blank worksheet with these steps and checks. Complete it locally; your answers are not sent.

Download trial worksheet (.md) ↓

Questions you may have

Why does my export contain more rows than I see on screen?

Use fetched rows and Selected rows only are available only when you export from query results or the Data Editor. When you start from Connections or an SQL script, DBeaver reads the data directly from the database.

DBeaver: data export
How do I keep leading zeros when I open the CSV in Calc?

Set that column to the type Text in the Text Import dialog. LibreOffice Help suggests this for leading zeros. With Detect special numbers on, Calc also detects number formats such as dates and times automatically, so choose column types on purpose.

LibreOffice Help: Text Import
Can I keep working in the database while the export runs?

The transfer runs in the background, but DBeaver advises avoiding changes to data in the tables selected for export or import. Leave the demo table alone during the trial so your row count stays fixed.

DBeaver: data transfer

Limits of this guide

  • Perkufo has not run this export with DBeaver and LibreOffice Calc for this guide.
  • DBeaver lists some export formats, such as XLSX and Parquet, as PRO features. This trial covers CSV only.
  • A correct demo file does not prove that a large export with other column types behaves the same way.

Sources for this practical section

  1. DBeaver: data export ↗ · 2026-12-02
  2. DBeaver: data transfer ↗ · 2026-12-02
  3. LibreOffice Help: Text Import ↗ · 2026-12-02
  4. LibreOffice Help (Nederlands): Tekstimport ↗ · 2026-12-02
Check for yourself

When is your trial useful?

0 / 3 checked

Checkmarks stay only on this page. Record your findings below to download them.

Write your own decision note

Your text stays on this page and is not included in share links. Nothing is saved or sent to Perkufo.

Sources and scope

Reviewed: 2026-10-22. Provider instructions support the described product steps. The trial and assessment questions are editorial.

DBeaver: data export ↗

Keep the next step small

From trial to decision

Explore software in this category →Calculate your plan costs →Bruno or Postman: move a real API workflow safely →

Did this help you?

Your answer counts anonymously for this page. No account or written explanation needed.