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 can connect to SQL Server from Tableau (Direct Query) without issues, but Power BI fails with errors like “error: 40 - Could not open a connection to SQL Server” or “Connection Timeout / pre-login handshake failed.”
Connectivity test to server + port passes.
Tried both SQL Server connector and ODBC in Power BI.
Used both SERVER\INSTANCE and SERVER,PORT.
Tableau still works fine.
Why would Tableau connect successfully, but Power BI fails? Could it be driver, authentication, or encryption/TLS settings?
Solved! Go to Solution.
Hi @prabavathym
This happens because Tableau uses its own ODBC drivers, while Power BI depends on Microsoft SQL drivers. Fix is usually:
Hi @prabavathym
Just checking in as we haven't received a response to our previous message. Were you able to review the information above? Let us know if you have any additional questions.
Thank You.
Hi @prabavathym
I wanted to check if you’ve had a chance to review the information provided. If you have any further questions, please let us know. Has your issue been resolved? If not, please share more details so we can assist you further.
Thank You.
Hi @prabavathym
Thank you for submitting your question to the Microsoft Fabric Community Forum.
The issue arises because Power BI depends on Microsoft SQL client drivers, whereas Tableau uses its own ODBC drivers, which is why Tableau is able to connect successfully while Power BI fails with errors like error 40 or pre-login handshake timeout.
As @rohit1991 suggested, try installing the latest Microsoft OLE DB Driver for SQL Server (MSOLEDBSQL) and the Microsoft ODBC Driver (msodbcsql17 or 18) on the machine, and also on the gateway server if you are using Power BI Service.
Could you let us know if the suggested solution resolved your issue?If you still need help, please share more details so we can assist you further.
Thank you.
Hi @prabavathym
This happens because Tableau uses its own ODBC drivers, while Power BI depends on Microsoft SQL drivers. Fix is usually:
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.