This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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.
Solved! Go to Solution.
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
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
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
Check out the June 2026 Fabric update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 |