PowerApps 无法通过本地数据网关连接到本地 SQL 服务器

PowerApps cannot connect to on-premise SQL Server through On-Premise Data Gateway

我正在尝试建立从 PowerApps 到我们拥有的本地 SQL 服务器实例的数据连接。但是,我收到以下错误:

Microsoft SQL: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

我正在按照 Microsoft 的 this 支持文章进行设置。

到目前为止我所做的一切:

奇怪的是,如果我将 username/password 更改为不正确的内容,它会给我一个 "invalid credentials" 错误,所以我知道它至少可以访问 domain/SQL 服务器进行身份验证. SQL 服务器中是否有我遗漏的设置?

所以,我是个白痴,SQL 服务器名称错误。在教程中,我看到讲师只是列出了计算机名称(这就是我正在做的),但我还需要添加一个反斜杠和 SQLEXPRESS。

  • 旧名称:DEVPC
  • 新的正确名称:DEVPC\SQLEXPRESS

在那之后工作得很好。