Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
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:
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 66 | |
| 41 | |
| 40 | |
| 39 | |
| 39 |