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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Jothy
Regular Visitor

Notebooks - On-Prem SQL server to Lakehouse

Hi Team,

We are able to access the On-prem SQL server hosted on Azure VM using Data Factory dataflow.

This it could connect post creating a gateway and using that gateway in Factory experience.

 

If the same we need to do via Python notebooks, how should we use that gateway option in our connection string? Please help

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Jothy ,

 

Currently, Fabric Notebook do not support direct connections to local databases through the Power BI Gateway. Fabric Spark does not integrate with the Power BI Gateway.

 

There are two alternatives:

 

First, you can create shortcut to the external data in Fabric Lakehouse. This way, you can query the data using notebooks.

 

For more information about shortcut, please see:

Create a OneLake shortcut - Microsoft Fabric | Microsoft Learn

 

Second, you can use data pipeline to copy data to the lakehouse instead of using notebook.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Jothy ,

 

Currently, Fabric Notebook do not support direct connections to local databases through the Power BI Gateway. Fabric Spark does not integrate with the Power BI Gateway.

 

There are two alternatives:

 

First, you can create shortcut to the external data in Fabric Lakehouse. This way, you can query the data using notebooks.

 

For more information about shortcut, please see:

Create a OneLake shortcut - Microsoft Fabric | Microsoft Learn

 

Second, you can use data pipeline to copy data to the lakehouse instead of using notebook.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Hello,

I too have the requirement to connect to Azure SQL database from Fabric notebook. Hoping the landscape would have changed, is it possible to connect to Azure SQL database from Fabric notebook at this point of time? 


Please note that, I have a requirement specifically to connect to Azure SQL database only from Fabric notebook.

Thanks in advance!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

June FBC25 Carousel

Fabric Monthly Update - June 2025

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