DataMosaic

Blog · Compared

n8n vs Power Automate for an IT team with its own servers

Two workflow tools read from their own documentation and pricing pages, one morning job built in each, and which job needs which.

#The two side by side

Each line below comes from the vendor's own documentation or pricing page, read in November 2026. Prices are as published, billed yearly.

Power Automaten8n
Where it runsMicrosoft's cloud; desktop flows on a Windows machineSelf-hosted with Docker or Docker Compose, or n8n's cloud
Reaching SQL Server on your networkThrough the on-premises data gateway, installed on a Windows machineSelf-hosted inside the network, directly. n8n's cloud reaches it only if your firewall lets in n8n's shared IP addresses
Running your own SQLExecute a SQL query (V2) is not supported through the gateway: you call a stored procedureExecute an SQL query in the Microsoft SQL node
Which connectors cost extraSQL Server is a premium connector. The Free licence has standard connectors onlyNo connector is sold separately
How it is licensedPremium, $15.00 per user a month; Process, $150.00 per bot a monthCommunity Edition free to self-host. Cloud: Starter €20 a month for 2,500 executions, Pro €50 for 10,000. Business, self-hosted, €667 a month for 40,000
What is countedUsers, or flows with a Process licenceExecutions: "a single run of your entire workflow", however many steps
RetriesA retry policy on each action; by default up to 12 retries at growing intervals on the Medium and High performance profilesRetry On Fail on each node
When it failsRun after settings, Try and Catch scopes, and repair tips emailed to the flow's ownerAn Error Workflow that starts with the Error Trigger, set per workflow; On Error per node
How long runs are keptThe 28-day run history; runs are kept in storage for 30 daysCloud: 7 days on Starter, 30 on Pro. Self-hosted: pruned after 14 days or 10,000 executions by default
Who reads a runBy default, the flow's ownerCommunity Edition: only the instance owner and the workflow's creator; sharing and projects are paid features

Three of those lines decide most choices, and they are worth reading slowly.

#The gateway, and what goes through it

Microsoft describes the on-premises data gateway as "a locally installed Windows client application that acts as a bridge between your local on-premises data sources and services in the Microsoft cloud". It needs no inbound ports, only outbound ones, which is why security teams accept it. It also has limits. Through it, Power Automate's requests are capped at 2 MB and its responses at 8 MB compressed. The SQL Server connector's own reference adds that Execute a SQL query (V2) is "not supported for on-premises SQL Server or connections with gateway", that a stored procedure called through a gateway returns only its first result set and no OUTPUT values, and that a query or procedure running longer than 110 seconds times out. Windows authentication to SQL Server needs the gateway as well.

n8n, hosted on a server in the same network as the database, has none of this between it and SQL Server. Its Microsoft SQL credential asks for the server, database, user, password, port and domain, with TLS and timeout settings, and its node can Execute an SQL query, insert, update and delete rows. The credential page lists "SQL database connection" as the way it signs in, so plan for a SQL login rather than a Windows account. If you use n8n's cloud instead, its documentation says requests come from a list of shared IP addresses that "can change without notice", and recommends allowlisting all of them and always requiring authentication.

#What you pay for

Power Automate charges for people or for flows. A flow that reads SQL Server needs Power Automate Premium for its owner, at $15.00 per user a month, or a Process licence on the flow, at $150.00 per bot a month, which also covers unattended desktop flows. Hosted Process, at $215.00, adds a virtual machine Microsoft runs for you.

n8n charges for runs, or not at all. The self-hosted Community Edition is "the free edition. This is what n8n runs without a license key." Its licence, the Sustainable Use License, says you may use it "only for your own internal business purposes or for non-commercial or personal use", which suits an IT team automating its own company. It leaves out, among others, environments, external secrets, log streaming, projects, SSO, sharing and version control with Git. The cloud plans count executions; Starter runs one for at most 5 minutes and Pro for at most 40.

#When a run fails

Both give you the parts; neither tells anyone until you wire it up.

In Power Automate, Microsoft Learn's guidance is to set Run after on the step that should run when another fails, or to put the work in a Try scope and the alerts in a Catch scope that runs when Try fails. A retry policy on an action can be fixed or exponential, up to 90 attempts. The service also emails the flow's owner repair tips when a cloud flow fails.

In n8n, you pick an Error Workflow in a workflow's settings: "It runs if an execution fails", it must start with the Error Trigger, and it receives the execution's ID, a link to it, the error message and the last node that ran. One error workflow can serve all the others. Each node has Retry On Fail and an On Error setting that stops the workflow, continues, or sends the error down an output of its own. The Stop and Error node fails a run on purpose, when a condition you define is met.

#One morning job in each

The job, for an invented chain of 120 stores: at 06:00, read yesterday's sales per store from the tills database, POS_HQ, on a SQL Server at head office, and email the store managers whose figure differs from the ERP's.

#In Power Automate

Because the gateway will not run a free-form query, the query goes in a stored procedure first. Run this in POS_HQ (the column names are invented: put in your own):

CREATE PROCEDURE dbo.usp_store_day_sales
    @business_date date
AS
BEGIN
    SET NOCOUNT ON;
    SELECT store,
           COUNT(*)        AS receipts,
           SUM(net_amount) AS net_sales
    FROM dbo.pos_receipts
    WHERE business_date = @business_date
    GROUP BY store
    ORDER BY store;
END;
GO

Then, with the gateway installed on a Windows server that stays on:

  1. Create a Scheduled cloud flow that repeats every day at 06:00, in your time zone.
  2. Add the SQL Server action Execute stored procedure (V2), with a connection that goes through your gateway, and pass yesterday's date as @business_date.
  3. Do the same against the ERP's database, with a procedure of its own.
  4. Compare the two lists inside the flow, then send the email for each store that differs.
  5. Put steps 2 to 4 in a Try scope, and a Catch scope set to run after Try fails, which emails IT.

#In n8n, self-hosted

  1. Add a Schedule Trigger at 06:00, and set the workflow's Timezone in its settings; with none set, n8n uses New York time.
  2. Add a Microsoft SQL node, Execute an SQL query, with the query itself:
SELECT store,
       COUNT(*)        AS receipts,
       SUM(net_amount) AS net_sales
FROM dbo.pos_receipts
WHERE business_date = CAST(DATEADD(day, -1, GETDATE()) AS date)
GROUP BY store
ORDER BY store;
  1. A second Microsoft SQL node reads the ERP.
  2. Compare the two lists, then send the email for each store that differs.
  3. In the workflow's settings, pick an Error Workflow that emails IT.

#What each gives you the next morning

StoreTillsERPWhat either flow sends
ST-0049,870.209,870.20Nothing
ST-01412,400.0011,920.00An email: 480 apart
ST-0226,410.75MissingAn email, if your comparison step handles a store missing on one side
ST-0317,215.447,215.40An email, unless you wrote a tolerance into the comparison

Invented figures. Both flows get as far as the same table, by different roads: Power Automate through the gateway and a stored procedure, n8n by a direct query. In both, step 4 is yours to write: the join on store, a store missing on one side, the 0.04 of rounding at ST-031 that is not worth an email, and last night's result to set against tonight's. Neither says why ST-014 is 480 short. The queries for the comparison itself are in compare two tables in SQL.

#Which job needs which

Choose Power Automate when the flow starts and ends in Microsoft 365: a form in Teams, an approval in Outlook, a file in SharePoint. It also has desktop flows, which drive a Windows application through its screens when it has no API. Budget for Premium or Process licences once a flow touches SQL Server, and for a Windows machine that never sleeps to host the gateway.

Choose self-hosted n8n when most of the flow runs against your own servers and databases, and someone on the team is happy to run a Docker container, upgrade it and back it up. It costs nothing to license under the Community Edition, and a run is a run however many steps it has.

Use both when the work splits that way: Power Automate for the office, n8n for the back office. If neither fits, the Power Automate alternatives post covers Zapier, Node-RED, Rundeck and Task Scheduler with PowerShell.

#Where DataMosaic sits

DataMosaic is not a general automation tool, and it does not replace either one. It does the step both leave to you in the morning job.

A check reads two systems with a query each, lines their rows up on a key such as store and business date, and compares the measures you choose, with a tolerance on each, so ST-031's 0.04 never sends an email. Rules decide whether a run passed, and every run is kept in the check's history. On a row that differs, an investigation asks each system what it saw, until there is a reason for ST-014. A check only reads.

Mosaic's workflows start from a check, a schedule, a call or by hand, and act only as you draw them: send the batch again, run the check again, email the store manager only if it still differs. No AI decides what changes. Every feature is free while DataMosaic is in beta (November 2026).

#Questions people ask

#Can n8n replace Power Automate?

For flows between your own servers, databases and web APIs, often yes, and self-hosted it needs no gateway. For flows built around Microsoft 365, or desktop flows that drive a Windows application with no API, Power Automate is the tool made for that job.

#Is n8n free to self-host?

Yes. The Community Edition runs without a licence key, under the Sustainable Use License, which allows use for your own internal business purposes. It leaves out projects, sharing, SSO, environments and Git version control, among others.

#Does Power Automate need a gateway for SQL Server?

For a SQL Server on your own network, yes: the on-premises data gateway, on a Windows machine that stays on. Through it, Execute a SQL query (V2) is not supported, so you call a stored procedure.

#How does n8n count executions?

On its cloud plans, an execution is "a single run of your entire workflow", whatever the number of steps or the amount of data. Starter includes 2,500 a month and Pro 10,000, billed yearly.

#How long does Power Automate keep a flow's run history?

The flow's page shows a 28-day run history, and Microsoft's limits page says runs are kept in storage for 30 days from their start.

Stop comparing exports by hand.

DataMosaic checks the systems themselves overnight, tells you why they differ, and runs the fix you've set up, before anyone else notices.