Nikola Ilic shows off a solution:
For most of Fabric’s life (and it’s been more than 3 years now), the answer to “can my Fabric notebook read our on-premises SQL Server?” was… Eehhmm, no… The on-premises data gateway worked for pipelines, Dataflow Gen2, and mirroring, but not for notebooks. The standard workaround was to ingest the data with a pipeline first, and only then pick it up in Spark. In February 2026, the Execute Query REST API opened a side door: a notebook could call it to run Power Query M inside a Dataflow Gen2 item (gateway included), as long as the query finished within 90 seconds.
The November Fabric feature summary turned that into a native notebook feature. A new module,
notebookutils.powerquery, runs Power Query M from a notebook through an existing Fabric connection, including a gateway-backed one! The result comes back as a PySpark DataFrame.
But read on for the limitations in this solution.