Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I am not able to connect to SQL sever in Power BI. Can anyone help me to fix that issue?
"We encountered an error while trying to connect details: "Microsoft SQL:Connection timeout expiered. 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=115; handshake=29882; "
Attach Picture.
Problem-1
Problem-2
Solved! Go to Solution.
Hi, @shantanugupta
Have you followed amitchandak’s suggestion to try IP address instead of using server name and check if it can work?
If not, you can also try these steps that may help according to my research:
Here are some cases that have a similar error as yours, you can also take a look:
https://community.powerbi.com/t5/Desktop/Unable-to-Connect-to-SQL-Server/m-p/28645
https://community.powerbi.com/t5/Desktop/sql-connection-time-out-from-power-bi-desktop/m-p/17307
https://community.powerbi.com/t5/Desktop/Unable-to-connect-to-SQL-server/m-p/79157
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I tried installing ODBC drivers and connectors even after am unable to connect to MySql Database in Power Bi.
Hi, @shantanugupta
Have you followed amitchandak’s suggestion to try IP address instead of using server name and check if it can work?
If not, you can also try these steps that may help according to my research:
Here are some cases that have a similar error as yours, you can also take a look:
https://community.powerbi.com/t5/Desktop/Unable-to-Connect-to-SQL-Server/m-p/28645
https://community.powerbi.com/t5/Desktop/sql-connection-time-out-from-power-bi-desktop/m-p/17307
https://community.powerbi.com/t5/Desktop/Unable-to-connect-to-SQL-server/m-p/79157
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@shantanugupta , There is some issue with URL.
In one solution using IP address in place or URL had worked
other one refer: https://stackoverflow.com/questions/60520909/failed-to-connect-from-sql-server-database-to-ms-power-...
Check This one : https://social.msdn.microsoft.com/Forums/ie/en-US/7419eefe-5f57-4dd1-9604-12db4b544068/prelogin-hand...
@amitchandak I didnot understand " In one solution using IP address in place or URL had worked" what it means?
Can you just elaborate it???
@shantanugupta , In the server you are using a URL. Try an IP address of a server like 112.30.21.05 (example)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.