cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Salah
Helper III
Helper III

unable to connect to sql server

Dear Sir,

 

I'm trying to connect my form to sql server but when doing the connection its unable to connect.

 

thank you

6 REPLIES 6
gabibalaban
Super User II
Super User II

Can you give more info about this issue ? Are you received any errors ? Where is SQL server located ?

hello,

 

i'm getting a red line with an exclamation mark..

sql is located in another location and i'm trying to connect via ip address

Hi @Salah ,

Could you tell me whether do you want to connect with on-promise sql or azure sql?

Could you show me how do you connect with sql server in details (if you could give me screenshoots, it will be better)?
If you want to connect with on-promise sql, you need to use gateway.

Here's a doc about how to connect with sql server for your reference:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/connections/connection-azure-sqldatabas...

What's more, you could only use gateway in default environment.

If you want to connect with sql server, you need to buy license that you need. (sql server is Premium connector).

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

its on-premise this is the error i received.

 

Microsoft SQL: Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=77; handshake=29974; inner exception: Microsoft SQL: Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=77; handshake=29974; clientRequestId: 5c6a46b8-e43a-4c44-87d0-f7f88439317e

Hi @Salah ,

Please check these points that may lead to this problem:

1. Please make sure your database engine is configured to accept remote connections.
2. Please make sure that you create an exception on the firewall for the SQL Server instance and port you are using.
3. Please check if your SQL server services is up and running properly.
4. Please make sure that you enable TCP/IP in SQL Server Configuration

 

This article could be a reference for you:
https://www.mssqltips.com/sqlservertip/2340/resolving-could-not-open-a-connection-to-sql-server-erro...

 

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,942)