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

Notifications

Announcements

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

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
    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
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard