Skip to main content

Notifications

Power Automate - Using Connectors
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

 

 

  • Xriz Profile Picture
    Xriz 4 on at
    Re: Unable to connect to SQL Server

    Hello @Anonymous ,

     

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

  • v-zhos-msft Profile Picture
    v-zhos-msft on at
    Re: Unable to connect to SQL Server

    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.

  • 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 Profile Picture
    v-zhos-msft on at
    Re: Unable to connect to SQL Server

    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.

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard

Featured topics