Somebody wants the data as a file

DBLoader » Use cases » Export tables to Excel or CSV

Download DBLoader Free Trial »     Buy DBLoader Now »

The situation

The data lives in a database, but the person who needs it does not have access to one. They want a spreadsheet, or the BI tool reads CSV, or the archive for this quarter has to be a set of files on disk.

Typing a query and pasting the grid into a spreadsheet works right up to the point where the result is large, has commas and quotes in it, or is twenty tables instead of one.

What you do

  1. Connect to the database and open either the table or a query - a query is how you export a filtered part of a table.
  2. Choose the output format: CSV, TSV/TXT, Excel, JSON, XML, HTML, INI, RDF or SQL.
  3. Pick the destination folder and file name. When exporting many tables, a file-name pattern is used so each table lands in its own file.
  4. Run. The data is written to disk, properly quoted and escaped for the format you chose.

Choosing a table to export to a file in DBLoader

For a regular delivery this is worth saving as a session: same source, same folder, one click each week - or a command-line call from the scheduler before anyone arrives.

What it will not do

Related

The modes: one table to files, a query to a file, many tables at once, similar tables into one file. Going the other way: file to table. Doing it on a schedule: nightly tasks, command line.