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

60 Days of Data Days! Live and on-demand sessions, challenges, study groups and more! And it's all FREE!. Join now. Learn more

Reply
MK007
Frequent Visitor

Connect to on-premise SQL Server

Has anyone tried to connect to an on-premise SQL Server database using a Fabric Spark job definition or a notebook? I am able to do so using a data pipeline (via an on-premise gateway). However, I would like to know if it is possible in a Spark job or notebook. 

1 ACCEPTED SOLUTION
nilendraFabric
Super User
Super User

Hello @MK007 

 

Spark notebooks and SJD in Fabric cannot use the On-Premises Data Gateway for connectivity to on-premises SQL Server databases

 

VPN/ExpressRoute for direct network access or Managed Private Endpoints for Azure Private Link connectivity could be a possibility.  I haven't tried it personally 

 

View solution in original post

2 REPLIES 2
v-achippa
Community Support
Community Support

Hi @MK007,

 

Thank you for reaching out to Microsoft Fabric Community.

 

Thank you @nilendraFabric for the prompt response.

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the super user resolved your issue? or let us know if you need any further assistance.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

nilendraFabric
Super User
Super User

Hello @MK007 

 

Spark notebooks and SJD in Fabric cannot use the On-Premises Data Gateway for connectivity to on-premises SQL Server databases

 

VPN/ExpressRoute for direct network access or Managed Private Endpoints for Azure Private Link connectivity could be a possibility.  I haven't tried it personally 

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Top Kudoed Authors