web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Unable to connect to S...
Power Automate
Unanswered

Unable to connect to SQL Server

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

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

 

 

Categories:
I have the same question (0)
  • v-zhos-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    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.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @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 Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    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.

  • Xriz Profile Picture
    4 on at

    Hello @Anonymous ,

     

    Did you manage to solve your problem? I think I have the same problem.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard