# SQL Credential

**URL:** <https://community.n8n.io/t/sql-credential/35236>\
**Category:** Questions\
**Tags:** credentials, microsoft-sql\
**Created:** [January 12, 2024, 5:44pm UTC](https://community.n8n.io/t/sql-credential/35236 "2024-01-12T17:44:11Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![enzo\_botoloto](https://avatars.discourse-cdn.com/v4/letter/e/d9b06d/32.png) [@enzo\_botoloto](https://community.n8n.io/u/enzo_botoloto)\
**Post date:** [January 12, 2024, 5:44pm UTC](https://community.n8n.io/t/sql-credential/35236/1 "2024-01-12T17:44:11Z")

</div>

I filled credential fields with my server (SSMS 19) information but it is returning a timeout error when i try to connect, is the filling incorrect?

Server: 123.456.7.8  
Database: DatabaseName (name of the database in SQL that has the tablee)  
user: sql login  
password: sql password  
port: 1433  
domain: internet domain

That credential return me this error:  
Failed to connect to 192.168.1.5:1433 in 30000ms

Please someone can help me? I cant think of anything else to do

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [January 12, 2024, 5:44pm UTC](https://community.n8n.io/t/sql-credential/35236/2 "2024-01-12T17:44:11Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [January 14, 2024, 3:25pm UTC](https://community.n8n.io/t/sql-credential/35236/3 "2024-01-14T15:25:11Z")

</div>

Hey @enzo_botoloto,

How are you running n8n and have you configured SQL to allow the connection? Are you also using a self hosted SQL instance (Express or Full) or is it a Cloud instance of SQL on something like Azure?

---

<div class="post-metadata">

**Author:** ![enzo\_botoloto](https://avatars.discourse-cdn.com/v4/letter/e/d9b06d/32.png) [@enzo\_botoloto](https://community.n8n.io/u/enzo_botoloto)\
**Post date:** [January 15, 2024, 12:10pm UTC](https://community.n8n.io/t/sql-credential/35236/4 "2024-01-15T12:10:17Z")

</div>

Hello Jon,

I configured in SQL Configuration Manager TCP/IP in SQL Express in on-premise server (enterprise), after that i created login account and connected to database with my personal endpoint (successful conection).

Now i need to create this workflow to save Pipefy Reports in SQL but i can’t connect with credentials (even filling it out correctly, i guess)

---

<div class="post-metadata">

**Author:** ![Gang\_Ma](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/gang_ma/32/33042_2.png) [@Gang\_Ma](https://community.n8n.io/u/Gang_Ma)\
**Post date:** [January 15, 2024, 12:33pm UTC](https://community.n8n.io/t/sql-credential/35236/5 "2024-01-15T12:33:39Z")

</div>

It is a docker installation for n8n? Is the SQL port opened for n8n? Please try to tcpdump the login traffic.

---

<div class="post-metadata">

**Author:** ![enzo\_botoloto](https://avatars.discourse-cdn.com/v4/letter/e/d9b06d/32.png) [@enzo\_botoloto](https://community.n8n.io/u/enzo_botoloto)\
**Post date:** [January 15, 2024, 12:57pm UTC](https://community.n8n.io/t/sql-credential/35236/6 "2024-01-15T12:57:08Z")

</div>

I’m using Web N8N, and using the same port 1433 (already opened) that uses in SQL TCP/IP. I never hear about tcpdump, it is in N8N credential configuration?

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [January 15, 2024, 1:47pm UTC](https://community.n8n.io/t/sql-credential/35236/7 "2024-01-15T13:47:35Z")

</div>

Hey @enzo_botoloto,

If you are using n8n cloud do you have your firewall open and is the traffic from n8n cloud allowed through it?

---

<div class="post-metadata">

**Author:** ![enzo\_botoloto](https://avatars.discourse-cdn.com/v4/letter/e/d9b06d/32.png) [@enzo\_botoloto](https://community.n8n.io/u/enzo_botoloto)\
**Post date:** [January 15, 2024, 2:11pm UTC](https://community.n8n.io/t/sql-credential/35236/8 "2024-01-15T14:11:53Z")

</div>

I guess that’s the problem. I’ve thought about this, but I can’t imagine how to allow n8n traffic to pass through the firewall for web access.

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [January 15, 2024, 2:20pm UTC](https://community.n8n.io/t/sql-credential/35236/9 "2024-01-15T14:20:49Z")

</div>

Hey @enzo_botoloto,

You would need to open the firewall for the SQL port which can in some cases be dangrous if you don’t know what you are doing. It could be that running your own instance of n8n is the best approach for you.

---

<div class="post-metadata">

**Author:** ![enzo\_botoloto](https://avatars.discourse-cdn.com/v4/letter/e/d9b06d/32.png) [@enzo\_botoloto](https://community.n8n.io/u/enzo_botoloto)\
**Post date:** [January 15, 2024, 2:23pm UTC](https://community.n8n.io/t/sql-credential/35236/10 "2024-01-15T14:23:02Z")

</div>

Can we talk in chat?

---

<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:** [January 22, 2024, 2:23pm UTC](https://community.n8n.io/t/sql-credential/35236/11 "2024-01-22T14:23:50Z")

</div>

Closed on January 22, 2024, 2:23pm UTC

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