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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
hwallop76
Regular Visitor

Sql Server Linked Server connection to Fabric Sql Endpoint

Hi,

 

I'm trying to create a Linked Server connection from SQL Server to Fabric Lakehouse SQL Endpoint. The idea is to easily get data from Fabric to on-prem SQL Server. The current On-Prem solution is not using e.g SSIS to integrate data but all the integrations are done with Linked Server connections.  

 

Following this documentation (https://learn.microsoft.com/en-us/sql/relational-databases/security/authentication-access/azure-ad-a...) I'm trying to use AAD application credentials to authenticate against Lakehouse SQL endpoint.

 

Error:

hwallop76_1-1692824640370.png

"Cannot use Access Token with any of the following options: Authentication, Integrated Security, User, Password.
OLE DB provider "MSOLEDBSQL" for linked server "F2" returned message "Invalid connection string attribute". (Microsoft SQL Server, Error: 0)""

 

Seems like this is not possible with Fabric, does anyone know better? Thanks.

2 REPLIES 2
GilbertQ
Super User
Super User

Hi @hwallop76 

 

It does appear not to work because of the way it needs to authenticate with a username and password as if you were logging in.

 

Have you tried using the data pipeline copy activity and try and copy the data from the Fabric SQL End point to your SQL Server via the gateway?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Hi @GilbertQ 

 

To my knowledge there is no Self-Hosted Integration Runtime for Fabric, so I cannot push data to On-Prem with Copy Activity. 

 

The requirement was for the client application (SQL Server) to pull data from Fabric. I ended up using SSIS after all, since the connection worked well with AAD service principal.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors