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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
JānisB
Frequent Visitor

How to connect a Notebook to an existing Fabric connection without using Pipeline.

There is an existing connection (Manage connections and gateways). For example connection ID: aaabbb .

Is it possible to connect a Notebook (T-SQL and Python and PySpark(Python)) to an existing Fabric connection without using Pipeline?

1 ACCEPTED SOLUTION
v-achippa
Community Support
Community Support

Hi @JānisB,

 

Thank you for reaching out to Microsoft Fabric Community.

 

As of now, fabric does not support directly connecting a Notebook (T-SQL, Python, or PySpark) to an existing fabric connection from "Manage connections and gateways" without using a pipeline.

  • The "Manage connections and gateways" feature in fabric is mainly used for Data Pipelines, Dataflows, and Linked Services to connect to external data sources.
  • Fabric Notebooks (T-SQL, Python, PySpark) do not natively support direct connections to these pre-configured connections.
  • Notebooks typically connect directly to Lakehouse, Data Warehouse or KQL Database directly rather than through "Manage connections and gateways".

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thanks and regards,

Anjan Kumar Chippa

 

View solution in original post

2 REPLIES 2
v-achippa
Community Support
Community Support

Hi @JānisB,

 

Thank you for reaching out to Microsoft Fabric Community.

 

As of now, fabric does not support directly connecting a Notebook (T-SQL, Python, or PySpark) to an existing fabric connection from "Manage connections and gateways" without using a pipeline.

  • The "Manage connections and gateways" feature in fabric is mainly used for Data Pipelines, Dataflows, and Linked Services to connect to external data sources.
  • Fabric Notebooks (T-SQL, Python, PySpark) do not natively support direct connections to these pre-configured connections.
  • Notebooks typically connect directly to Lakehouse, Data Warehouse or KQL Database directly rather than through "Manage connections and gateways".

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thanks and regards,

Anjan Kumar Chippa

 

So how would you connect to say an Azure SQL database in PySpark?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

May FBC25 Carousel

Fabric Monthly Update - May 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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