npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-stream-csv-from-microsoft-sql

v1.1.2

Published

Download CSV from Microsoft SQL Server and use it in n8n workflows.

Readme

n8n-nodes-stream-csv-from-microsoft-sql

n8n community node to execute a Microsoft SQL Server query and return the result as a CSV binary file.

The node is optimized for streaming large result sets (including millions of rows) without loading the full query result into memory.

Installation

In n8n, install the community package:

n8n-nodes-stream-csv-from-microsoft-sql

Or follow the official guide: https://docs.n8n.io/integrations/community-nodes/installation/

Operations

Microsoft SQL to CSV

  • Executes a SQL query against SQL Server.
  • Streams rows to a temporary CSV file.
  • Returns the CSV as binary output.
  • Adds execution metadata in JSON:
    • microsoftSqlToCsv.rowCount
    • microsoftSqlToCsv.columnCount
    • microsoftSqlToCsv.fileName

Credentials

Credential type: Microsoft SQL (microsoftSqlCsvApi)

Required:

  • Server
  • Database
  • Username
  • Password

Optional:

  • Port (default 1433)
  • Instance Name
  • Encrypt
  • Trust Server Certificate
  • Connection Timeout (ms)
  • Request Timeout (ms)

Node parameters

  • Query (required): SQL statement to execute.
  • Include Headers: include column names as CSV header row.
  • Delimiter: CSV delimiter (default ,).
  • File Name: output CSV file name.
  • Binary Property: output binary field name (default data).
  • Include Input JSON: preserve incoming JSON fields in output.

Usage notes

  • Prefer SELECT statements for export workflows.
  • For very large exports, keep only required upstream fields and disable Include Input JSON when you don't need pass-through data.
  • If your query returns multiple recordsets, the node fails intentionally because CSV export supports a single result set per execution item.

Troubleshooting

SQLITE_BUSY / database is locked in n8n

This node does not write directly to SQLite. The lock usually happens when n8n persists execution and binary data under concurrent load.

Recommendations:

  • Reduce concurrent executions writing large binaries at the same time.
  • Configure workflow execution-data retention according to your auditing needs.
  • Keep n8n and this node on current versions to benefit from persistence fixes.

Development

npm run build
npm run lint
npm run dev

Resources

  • n8n community nodes docs: https://docs.n8n.io/integrations/#community-nodes
  • SQL Server docs: https://learn.microsoft.com/sql/sql-server/