# Microsoft SQL node connection

**URL:** <https://community.n8n.io/t/microsoft-sql-node-connection/93109>\
**Category:** Questions\
**Tags:** node\
**Created:** [March 26, 2025, 2:18pm UTC](https://community.n8n.io/t/microsoft-sql-node-connection/93109 "2025-03-26T14:18:22Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![aks-cadesign](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/aks-cadesign/32/68024_2.png) [@aks-cadesign](https://community.n8n.io/u/aks-cadesign)\
**Post date:** [March 26, 2025, 2:18pm UTC](https://community.n8n.io/t/microsoft-sql-node-connection/93109/1 "2025-03-26T14:18:22Z")

</div>

I have tried all available combinations to connect to Microsoft SQL Server without luck.

I always get this error:  
“Couldn’t connect with these settings  
Failed to connect to …”

I tried both url and ip address of the server address; different authentication types but I was not able to connect.

Does anyone know how to connect?

SSMS example settings:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/9/1/913059b45f1068f04bd11de2c3bd456842c451f1.png)

---

<div class="post-metadata">

**Author:** ![ThinkBot](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/thinkbot/32/62172_2.png) [@ThinkBot](https://community.n8n.io/u/ThinkBot)\
**Post date:** [March 26, 2025, 5:48pm UTC](https://community.n8n.io/t/microsoft-sql-node-connection/93109/2 "2025-03-26T17:48:56Z")

</div>

Tad confused. So to be clear, you have a working MySQL server on an IP, and you are trying to connect to it via n8n? Or you can’t even connect to the sql server without n8n?

---

<div class="post-metadata">

**Author:** ![aks-cadesign](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/aks-cadesign/32/68024_2.png) [@aks-cadesign](https://community.n8n.io/u/aks-cadesign)\
**Post date:** [March 27, 2025, 7:19am UTC](https://community.n8n.io/t/microsoft-sql-node-connection/93109/3 "2025-03-27T07:19:39Z")

</div>

No, it’s not a MySQL server, it’s a Microsoft SQL Server as I stated in my description and I can connect to it outside of n8n.

---

<div class="post-metadata">

**Author:** ![jcuypers](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jcuypers/32/54965_2.png) [@jcuypers](https://community.n8n.io/u/jcuypers)\
**Post date:** [March 27, 2025, 8:20am UTC](https://community.n8n.io/t/microsoft-sql-node-connection/93109/4 "2025-03-27T08:20:54Z")

</div>

Hi, What is the error message that you are getting? Can you reach the actual SQL server from the n8n instance? Can you reach the machine and does the port connect? I would imagine that an SQL server would be locked down in primary defense to anything what shouldn’t reach it traffic-wise. If you mention, it works from a normal sql client, i image you are trying to run the n8n from the same machine.

reg,  
J

---

<div class="post-metadata">

**Author:** ![aks-cadesign](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/aks-cadesign/32/68024_2.png) [@aks-cadesign](https://community.n8n.io/u/aks-cadesign)\
**Post date:** [March 27, 2025, 9:09am UTC](https://community.n8n.io/t/microsoft-sql-node-connection/93109/5 "2025-03-27T09:09:38Z")

</div>

Hi,

When I try to add a new connection, I get this error:

“Couldn’t connect with these settings  
Failed to connect to {ip address or url, timeout duration}"

I can connect to the SQL server from that machine (and other machines). also with other tools.

I also tried connecting form an n8n instance on another machine without luck.

---

<div class="post-metadata">

**Author:** ![jcuypers](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jcuypers/32/54965_2.png) [@jcuypers](https://community.n8n.io/u/jcuypers)\
**Post date:** [March 27, 2025, 10:57am UTC](https://community.n8n.io/t/microsoft-sql-node-connection/93109/6 "2025-03-27T10:57:45Z")

</div>

Hi,

I’ve made a quick test to see how it works.

please try the following:

Go into the configuration of your N8N credentials for MSSQL.

I guess the connectivity test to your server fails there too?

Anyway, there is a small “more details” toggle which you can click, which hopefully provides you the real reason for not being able to connect.

When i enable TLS for example it fails, and you can see the actual problem

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/2/7/27562b23e151e1d4b63b87d4fd7969f921e6a877.png)

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/0/b/0bc09a29f273c36a357e79b648d73d1731ad1651.png)

Hope it will show what we need to get this working

---

<div class="post-metadata">

**Author:** ![aks-cadesign](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/aks-cadesign/32/68024_2.png) [@aks-cadesign](https://community.n8n.io/u/aks-cadesign)\
**Post date:** [March 27, 2025, 11:54am UTC](https://community.n8n.io/t/microsoft-sql-node-connection/93109/7 "2025-03-27T11:54:41Z")

</div>

I tied this before posting (including a lot more possible combination of the setting visible on the interface) but I got the same error message in the connectivity test.

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/1/4/140c6e02190f4c8a6d736f1e79467acab3f5e9a1.png)

---

<div class="post-metadata">

**Author:** ![jcuypers](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jcuypers/32/54965_2.png) [@jcuypers](https://community.n8n.io/u/jcuypers)\
**Post date:** [March 27, 2025, 12:03pm UTC](https://community.n8n.io/t/microsoft-sql-node-connection/93109/8 "2025-03-27T12:03:49Z")

</div>

Hi, I’m sorry but it’s hard to say much tbh. Can you describe where the SQL server is running? Are you running self-hosted on n8n docker? An overview where everything runs and how it’s connected would give a clue at least on how to solve. as it says a timeout of 15s, i just looks to me that there’s is no connectivity/reachability

---

<div class="post-metadata">

**Author:** ![Munesh\_Chauhan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/munesh_chauhan/32/60087_2.png) [@Munesh\_Chauhan](https://community.n8n.io/u/Munesh_Chauhan)\
**Post date:** [May 24, 2025, 6:31am UTC](https://community.n8n.io/t/microsoft-sql-node-connection/93109/9 "2025-05-24T06:31:50Z")

</div>

Is your n8n self-hosted running inside a docker? Then the server name would be “host.docker.internal” and also some few steps for setting the port number, etc.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [August 22, 2025, 6:31am UTC](https://community.n8n.io/t/microsoft-sql-node-connection/93109/10 "2025-08-22T06:31:50Z")

</div>

Closed on August 22, 2025, 6:31am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
