You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Azure Synapse Analytics链接服务的连接字符串中添加端口

Azure Synapse Analytics SQL Server链接服务端口配置方案

核心配置方法:在连接字符串的Data Source中嵌入端口

SQL Server链接服务的端口参数无需单独配置项,直接整合在connectionString的Data Source字段中,格式分两种场景:

  • 默认实例:Data Source=<服务器名称>,<端口号>;
  • 命名实例(指定非默认端口):Data Source=<服务器名称>,<端口号>;(若需保留实例名,也可写成Data Source=<服务器名称>\\<实例名称>,<端口号>;)

方式1:编辑链接服务JSON配置

修改你提供的JSON内容,在connectionString的Data Source部分添加端口:

{
  "name": "SqlServerLinkedService",
  "properties": {
    "type": "SqlServer",
    "typeProperties": {
      "connectionString": "Data Source=<servername>,<port>;Initial Catalog=<databasename>;Integrated Security=False;User ID=<username>;",
      "password": {
        "type": "AzureKeyVaultSecret",
        "store": {
          "referenceName": "<Azure Key Vault linked service name>",
          "type": "LinkedServiceReference"
        },
        "secretName": "<secretName>"
      }
    },
    "connectVia": {
      "referenceName": "<name of Integration Runtime>",
      "type": "IntegrationRuntimeReference"
    }
  }
}

方式2:可视化界面直接修改

从你提供的配置截图来看,界面无独立端口输入框,可直接在连接字符串输入框中修改Data Source内容,添加,<端口号>后缀即可完成配置。

其他选项说明

  • 参数选项卡:用于配置动态参数化场景(如多环境切换端口),若为固定端口需求,无需使用此方式。
  • 附加连接属性:SQL Server驱动不依赖此字段传递端口参数,无需额外配置。

内容的提问来源于stack exchange,提问作者Filipe Spadetto

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.15 12:35:43