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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.