Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

Connection Error

Hi Guys,

 

I am trying to connect to an SQL Server from PowerBI and I keep getting this error message.

 

Details: "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=18032; handshake=14220; "

 

I can connect to the same server from SSMS on the same machine and from excel too but I cant seems to connect from PowerBI. Also I can connect to other server from PowerBI.

 

I look forward to your response.

2 REPLIES 2
PowerBInewb
Frequent Visitor

I'm running into the same issue as well. I can ping the sql server, and have tried using the IP as well as opposed to the host name. Message:

 

Details: "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=18100; handshake=14274; "

 

I can also do a remote session with the server and not have any issues. Tobz were you able to resolve your issue?

v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

We are able to specify a command timeout value (in minutes) when connecting to SQL Server database after the March release of Power BI Desktop. Please set the value of "Command timeout in minutes" to a higher value and check if you can connect to SQL Server successfully? Or you can write a custom SQL statement in “SQL statement” and check if the connection is fine.

In addition, please try IP address instead of putting server name there, add check if it fix the issue. If you have any issue, please let me know.

Best Regards,
Angelia


Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.