跳转至

Microsoft SQL 凭证#

您可以使用这些凭证来验证以下节点:

先决条件#

Microsoft SQL 服务器数据库上创建用户账户。

支持的身份验证方法#

  • SQL 数据库连接

相关资源#

有关连接到服务的更多信息,请参阅 Microsoft 的连接到 SQL Server 文档

使用 SQL 数据库连接#

要配置此凭证,您需要:

  • Server 名称
  • Database 名称
  • 您的 User 账户/ID
  • 您的 Password
  • 用于连接的 Port
  • Domain 名称
  • 是否使用 TLS
  • 是否 Ignore SSL Issues
  • Connect Timeout
  • Request Timeout
  • 连接应使用的 TDS Version

要设置数据库连接:

  1. 将 SQL Server 主机名输入为 Server。在现有的 SQL Server 连接中,主机名位于实例名之前,格式为 HOSTNAME\INSTANCENAME。查找主机名:
  2. 将 SQL Server 实例名输入为 Database 名称。使用上面列出的查找主机名的相同步骤来查找此名称。
    • 如果您在任何这些地方都看不到实例名,那么您的数据库使用默认的 MSSQLSERVER 实例名。
  3. 输入您的 User 账户名或 ID。
  4. 输入您的 Password
  5. 对于 Port
    • SQL Server 默认为 1433
    • If you can't connect over port 1433, check the Error logs for the phrase Server is listening on to identify the port number you should enter.
  6. You only need to enter the Domain name if users in multiple domains access your database. Run this SQL query to get the domain name:

    1
    SELECT DEFAULT_DOMAIN()[DomainName];
    
  7. Select whether to use TLS.

  8. Select whether to Ignore SSL Issues: If turned on, the credential will connect even if SSL certificate validation fails.
  9. Enter the number of milliseconds n8n should attempt the initial connection to complete before disconnecting as the Connect Timeout. Refer to the SqlConnection.ConnectionTimeout property documentation for more information.
    • SQL Server stores this timeout as seconds, while n8n stores it as milliseconds. If you're copying your SQL Server defaults, multiple by 100 before entering the number here.
  10. Enter the number of milliseconds n8n should wait on a given request before timing out as the Request Timeout. This is basically a query timeout parameter. Refer to Troubleshoot query time-out errors for more information.
  11. Select the Tabular Data Stream (TDS) protocol to use from the TDS Version dropdown. If the server doesn't support the version you select here, the connection uses a negotiated alternate version. Refer to Appendix A: Product Behavior for a more detailed breakdown of the TDS versions' compatibility with different SQL Server versions and .NET frameworks. Options include:
    • 7_4 (SQL Server 2012 ~ 2019): TDS version 7.4.
    • 7_3_B (SQL Server 2008R2): TDS version 7.3.B.
    • 7_3_A (SQL Server 2008): TDS version 7.3.A.
    • 7_2 (SQL Server 2005): TDS version 7.2.
    • 7_1 (SQL Server 2000): TDS version 7.1.
此页面是否
💬 微信

🚀 与作者交流

关注公众号
n8n实战笔记公众号
n8n实战笔记
📚 教程 💡 案例 🔧 技巧
添加微信
添加作者微信
1对1 专业指导
⚡ 快答 🎯 定制 🚀 支持