This is an n8n community node. It lets you use a SQL Database in your n8n workflows.
SQL Database allows you to connect to a database via a JDBC.
n8n is a fair-code licensed workflow automation platform.
Installation
Operations
Credentials
Compatibility
Usage
Resources
Version history
The following dependenices must be installed prior to using this node:
- VS Build Tools or VS Community >= v2015 with C++ desktop development workload
- Python3
- Java 8
See Resources for more detail.
Follow the installation guide in the n8n community nodes documentation.
If installing through the n8n GUI fails:
Installing this node through the n8n GUI is throwing an error in my environment currently, node-gyp is unable to find the Visual Studio directory. I will update this section when I find a resolution.
If you also encounter this issue and would still like to help test or use this node, you may try to install it manually by doing the following:
cd [path to .n8n]/.n8n/nodes
npm i n8n-nodes-sqldatabase
If successful, you should now see the node available in the editor. If you receive any errors during step 4, review them and confirm that you've properly installed/configured or have encountered an issue that I did not. If the node doesn't appear yet installs properly, check that you've added it to the correct .n8n folder for your desired server.
Execute arbitrary SQL against a specified database. Supports dynamic parameters generated from prior node input.
- Username
- Password
- JDBC connection URL
- Driver Directory
Tested install and execution with:
- n8n version 1.1.1
- node 18.16.0
- Visual Studio Build Tools 2022
- Python 3.11
- Windows 11 & Windows Server 2022
- JDK & JRE 1.8u381
- Configure database credential
- Add node to workflow
- Input SQL
- Execute node
- node-java package, requires JDK and built with node-gyp
- node-gyp package, requires VS Build Tools/Community and Python
This is another optional section. If your node has multiple versions, include a short description of available versions and what changed, as well as any compatibility impact.