sql-serverpowerappsdata-gateway

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


I'm trying to setup a data connection from PowerApps to an on-premise SQL Server instance we have. However, I get the following error:

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)

I'm following this support article from Microsoft to get it set up.

Everything I've done so far:

The weird thing is if I change the username/password to something incorrect, it gives me an "invalid credentials" error, so I know it can at least hit the domain/SQL Server to authenticate. Is there a setting I'm missing somewhere in SQL Server?


Solution

  • So, I'm an idiot and had the SQL Server name wrong. In the tutorial I watched the instructor just listed the computer name (which is what I was doing), but I needed to add a backslash and SQLEXPRESS as well.

    Worked like a charm after that.