cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
smileamile
Level: Powered On

Unable to connect to SQL Server

I'm having difficulty getting a successful SQL Server db connection in flow. I have a gateway that I use for Power BI, and would like to use the same connections for this if possible. I've tried both with and without the gateway but get various errors. Is there something I'm missing? I can't find a decent step by step.

 

Error 1 - it's using a db account that does have access to the server/db

Details: 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.

 

Error 2 - all details were correct

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) inner exception: 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

 

 

3 REPLIES 3
v-zhos-msft
Level 10

Re: Unable to connect to SQL Server

Hi @smileamile ,

First, Please make sure the SQL Server is running. Go to Computer management>Services to turn on the Server if it is stopped.

Capture.PNG

Second, do you use the trial version of the SQL sever, make sure your permission have not expired.

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

smileamile
Level: Powered On

Re: Unable to connect to SQL Server

@v-zhos-msftMy SQL server is up and running and it's a production server. I'm sure I'm using a database username and password that has access. I'm just struggling to figure out how the gateway works, if there's additional configuration needed for PowerApps beyond what I've done for Power BI, and why it would throw me an error during setup but if I check the connections list later, it'll show the SQL connection and say "Connected" but I'm not sure it actually is. Weird stuff. Can't find a video step by step

v-zhos-msft
Level 10

Re: Unable to connect to SQL Server

Hi @smileamile ,

Please take a reference to this docs for more information about SQL server connection:

https://docs.microsoft.com/en-us/azure/connectors/connectors-create-api-sqlazure

Hope it will help you.

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (9,802)