AcademyWorkflowsData and reporting

Export SQL table into CSV file (n8n)

Finance and reporting teams that need regular CSV extracts from a SQL Server database.

  • Recommendedour rating
  • 6,600views on n8n
Open on n8n.io ↗

Paste it straight onto an n8n canvas with Ctrl+V or Cmd+V.

export-sql-table-into-csv-file.json

Loading the file...

What it does

An n8n workflow that exports the result of a SQL query to a CSV file automatically. It runs against Microsoft SQL, and the tutorial it links uses the sample AdventureWorks database, so you need access to a local or remote MSSQL server first. You can use it as a starting point and replace the sample query with your own.

Use cases

  1. 01Export a query result to CSV on each run
  2. 02Share a table extract with a team outside the database
  3. 03Repeat an export without copying data by hand

Connects

Microsoft SQL

Questions about
Export SQL table into CSV file (n8n).

What is Export SQL table into CSV file (n8n) used for?

Finance and reporting teams that need regular CSV extracts from a SQL Server database. An n8n workflow that exports the result of a SQL query to a CSV file automatically. It runs against Microsoft SQL, and the tutorial it links uses the sample AdventureWorks database, so you need access to a local or remote MSSQL server first. You can use it as a starting point and replace the sample query with your own.

How do I import Export SQL table into CSV file (n8n) into n8n?

Copy the workflow JSON from this page and paste it onto the n8n canvas with Ctrl+V or Cmd+V. Then connect your credentials in each node.

Is Export SQL table into CSV file (n8n) safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.