Execute Custom SQL Queries in Microsoft SQL Server

Simple n8n workflow to manually trigger and execute any SQL query on a Microsoft SQL Server database. Ideal for quick data retrieval, testing, and ad-hoc queries without external tools.

n8n
Execute Custom SQL Queries in Microsoft SQL Server

This workflow provides a straightforward way to run custom SQL queries against a Microsoft SQL Server database using n8n's built-in node. It starts with a Manual Trigger node, activated by clicking 'execute', which connects directly to the Microsoft SQL node configured for 'executeQuery' operation. Users simply input their SQL query in the node parameters and provide valid Microsoft SQL credentials to fetch or manipulate data instantly.

The benefits include rapid prototyping of database interactions, seamless integration into larger n8n automations, and elimination of the need for separate database clients like SSMS for one-off queries. It's lightweight, with only two nodes, ensuring minimal setup time and low resource usage, making it perfect for developers, DBAs, and analysts needing quick insights.

Use cases span IT operations such as validating data migrations, extracting reports for business intelligence, troubleshooting application data issues, or integrating query results into downstream processes like notifications or file exports. Extend it by adding nodes for HTTP requests, email alerts, or data transformations post-query execution.

$4.99
Last updated October 3, 2026
30-day money-back guarantee
Instant download
Lifetime updates included

New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.

Secure checkout powered by Stripe

Support

How to import this workflow into n8n

  1. 1Purchase or download the workflow to get the n8n workflow JSON file.
  2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
  3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
  4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

Related File & Document Management workflows

More from Samir Steiner

Need this deployed? We'll set it up for you.

Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.