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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
schneiw
Frequent Visitor

ODBC driver connect to Fabric

Hi 

 

I want to set up a linked server in an on prem SQL Server instance. My thought wa to set up the ODBC connection, then in SQL server set up the lnked server using the ODBC driver connection.

 

I am using the standard ODBC admin tool in Windows to set it up, and I was trying to see if using the "Microsoft Entra ID with password authetication" method would work, since for the linked server I would not be able to use the interactive authentication method.

 

However, it keeps throwing this message:

schneiw_0-1750347653905.png

 

I know the credentials are correct because I can use them in Sql Server Management Studio to connect via the same method. Is there a bug in the ODBC driver or what should I be looking out for? Any ideas?

 

Thanks!

4 REPLIES 4
v-agajavelly
Community Support
Community Support

Hi @schneiw 

Thanks for sharing the detailed info and the error message screenshot that definitely helps narrow things down!

What you're running into here is a common limitation with using Entra ID (Azure AD) Username/Password auth in non-interactive tools like the ODBC driver. Even though the credentials are correct (and work fine in SSMS), the issue is that the ODBC driver doesn't support interactive prompts and many Entra ID accounts these days are behind MFA or Conditional Access policies that require those interactive steps. That’s why you’re seeing the "InteractionRequired" and 'Found unknown spec version 'pii' errors.

According to my experience  couple of ways you could approach this using Azure AD Service Principal (App Registration), SQL-authenticated user and Using ActiveDirectoryPassword with Entra ID.

Using Azure AD Service Principal.
If possible, consider using Azure AD Service Principal (App Registration) with a client secret. This method is designed for non-interactive scenarios like yours (ODBC + linked server) and doesn’t rely on a user login or MFA. You’d set it up in Azure, assign it access to your Fabric SQL endpoint, and then use ActiveDirectoryServicePrincipal as the authentication type in your ODBC connection.

Using SQL-authenticated user.
If allowed in your environment, creating a SQL-authenticated user (with username/password) directly in the Fabric SQL endpoint and using that for the ODBC connection can also work this avoids Entra ID altogether.

Using ActiveDirectoryPassword.
Using ActiveDirectoryPassword with Entra ID credentials usually won’t work reliably unless MFA and Conditional Access are turned off, which isn’t typical in most orgs anymore.

________________________________________________________________________________________________________________________
If this response helps, consider marking it as “Accept as solution” and giving a “kudos” to assist other community members.

Reagrds,
Akhil.

I see that message relating to "...converted from Unexpected to InteractionRequired. But look at these two connection options. One states to use a usernam and password whereas the other refers to Interation. I am not using the one referin to  Interaction, so it should just use the username and password, unless its bugged? 

schneiw_0-1750419610523.png

I also found this link that seems to point the ODBC driver being bugged, can you confirm? Connection Issue with Microsoft Fabric Data Warehouse using MSODBC 18, sqlsrv 5.12.0, and pdo_sqlsrv...

Using ActiveDirectoryPassword.: I did try this option, and confirmed with our Azure admin that the username that I a using is in an exclusion group for MFA. I was able to use this option successfully in a tool like SSMS, which is why I am confused that the ODBC driver will not connect using the same meathod.

Thank you I will try some of these. 

 

Can you point to any documentation on this option? I cannot find it and ChatGPT does not seem to provide workable instauctions: Using SQL-authenticated user.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

May FBC25 Carousel

Fabric Monthly Update - May 2025

Check out the May 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.