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 Apps / Connection refused to ...
Power Apps
Unanswered

Connection refused to access SQL server with SQL instance and different port

(0) ShareShare
ReportReport
Posted on by 83

I am facing the problem that I can not establish a connection to the DB stored in our company network.
To make some tests I set up a test DB on Azure and the connection to Power Apps worked like a charm. 


Changes I made:
In the firewall settings I added a rule for Power Apps with the IP-Range from 52.174.88.1 to 52.174.88.255 (like I did for my test DB on Azure before)


those are my information I got from PortQry*:
The DB is stored on server:
TestServer.compnanyAddress.com

ServerName: TestServer
InstanceName: TestInstance
IsClustered: No
Version 15.0.2000.5
tcp 64432


Those are the information I use in Power Apps to connect to SQL Server:

SQL Server-Authentification
(•) Connect directly (cloud services)
SQL server name:
TestServer.companyAddress.com\TestInstance
SQL database name:
TestDB
Username:
TestUser
Password:
TestPassword

 

Additional Information:

In a webinar (https://www.youtube.com/watch?v=x0V0-QjSGtg) I saw this Power Apps connection to a SQL DB:
2020-03-18 10_12_44-Power Apps – Submit Data to a SQL Database_ Qdabra Webinar 2018-10-11 - YouTube.png




Do I have to enter my information similiar to these with the additional port? If yes how do the typed in information look like?


*PortQry: https://support.microsoft.com/en-us/help/310099/description-of-the-portqry-exe-command-line-utility



I have the same question (0)
  • Verified answer
    rimatos Profile Picture
    on at

    Hi @leo41,

     

    Is the SQL server from your company network on-premise? If it is, you will need to have a gateway available to you. You can follow this guide on how to install and configure a Gateway.

    Afterwards, you can the proceed with connecting to your on-premisses data sources using the data gateway, as explained here. 

     

     

    Additionally, you also have documentation here for the SQL connector, and on how to connect to SQL server from PowerApps, which shows an example on how to do it for an Azure database.

     

     

    Hope this helps!

     

    Regards,

    Ricardo 

  • leo41 Profile Picture
    83 on at

    Hi Ricardo,

     

    thanks for your reply.

    I got the misinformation from our IT the DB is stored directly in Azure but unfortunately it is stored in an Azure VM so yes I need a data gateway first.

     

    Regards,

    Leo

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard