<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Querying a Fabric SQL Database from a Notebook in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Querying-a-Fabric-SQL-Database-from-a-Notebook/m-p/4799507#M11786</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1258887"&gt;@apturlov&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please follow the below Process:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Using-the-Community/Blogging-in-the-community/ta-p/4291510" target="_blank"&gt;Blogging in the community - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Aug 2025 08:11:57 GMT</pubDate>
    <dc:creator>v-venuppu</dc:creator>
    <dc:date>2025-08-18T08:11:57Z</dc:date>
    <item>
      <title>Querying a Fabric SQL Database from a Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Querying-a-Fabric-SQL-Database-from-a-Notebook/m-p/4796373#M11727</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Fabric SQL Database is a relatively new storage option in Microsoft Fabric, ideal for transactional workloads. However, for&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;data science, machine learning, or exploratory analytics&lt;/STRONG&gt;&lt;SPAN&gt;, connecting via SQL endpoints can be limiting. These workloads benefit from the flexibility of&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Fabric Notebooks&lt;/STRONG&gt;&lt;SPAN&gt;, but SQL Databases aren't natively accessible from notebooks.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can work around the notebook access limitation by creating a&amp;nbsp;&lt;STRONG&gt;Lakehouse shortcut&amp;nbsp;&lt;/STRONG&gt;to a Fabric SQL Database. This exposes the SQL tables as&amp;nbsp;&lt;STRONG&gt;Delta-like folders&amp;nbsp;&lt;/STRONG&gt;in the Lakehouse’s&lt;/SPAN&gt;&amp;nbsp;Files&amp;nbsp;&lt;SPAN&gt;section, making them accessible from notebooks.&lt;BR /&gt;&lt;BR /&gt;So, here is a SQL database in Fabric populated with a samle dataset:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="apturlov_0-1755124824002.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1291071iA29D15B21F4E9A38/image-size/medium?v=v2&amp;amp;px=400" role="button" title="apturlov_0-1755124824002.png" alt="apturlov_0-1755124824002.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Next, I created a shortcut in a Lakehouse in the same workspace:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="apturlov_1-1755125053220.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1291072i9F64220EF0C35623/image-size/medium?v=v2&amp;amp;px=400" role="button" title="apturlov_1-1755125053220.png" alt="apturlov_1-1755125053220.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;A shortcut appears under the Files section in the Lakehouse with a hierarchical folder structure Schema/Table. The file content of a table folder reveals that this is a delta table. Now I can create a Notebook in this Lakehouse and use a simple code to load the SQL table content into a dataframe as a delta format:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="apturlov_2-1755125253592.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1291073iAFDDBCCCD6197B05/image-size/medium?v=v2&amp;amp;px=400" role="button" title="apturlov_2-1755125253592.png" alt="apturlov_2-1755125253592.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can go one step further and create a temporary view from the dataframe for convenience:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="apturlov_3-1755125475302.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1291074iD8BDBAB6B805B6F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="apturlov_3-1755125475302.png" alt="apturlov_3-1755125475302.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This approach can be useful for exploratory data analysis in notebooks, lightweight transformations before writing to a Lakehouse table, or bridging SQL and Spark workflows without duplicating data.&lt;BR /&gt;However, keep in mind, that a SQL database shortcut is read-only, not changes can be made to the underlying Fabric SQL database from a notebook via a shortcut.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 22:56:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Querying-a-Fabric-SQL-Database-from-a-Notebook/m-p/4796373#M11727</guid>
      <dc:creator>apturlov</dc:creator>
      <dc:date>2025-08-13T22:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Querying a Fabric SQL Database from a Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Querying-a-Fabric-SQL-Database-from-a-Notebook/m-p/4796802#M11739</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1258887"&gt;@apturlov&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This is great information, but would be better placed in the blogs section.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 08:27:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Querying-a-Fabric-SQL-Database-from-a-Notebook/m-p/4796802#M11739</guid>
      <dc:creator>wardy912</dc:creator>
      <dc:date>2025-08-14T08:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Querying a Fabric SQL Database from a Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Querying-a-Fabric-SQL-Database-from-a-Notebook/m-p/4796857#M11741</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1258887"&gt;@apturlov&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to Microsoft Fabric Community.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/475583"&gt;@wardy912&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;for the prompt response.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you so much for sharing this, This kind of post is incredibly valuable to the community. Definitely consider turning this into a blog post as suggested by &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/475583"&gt;@wardy912&lt;/a&gt;&amp;nbsp;, so others can benefit from your experience more easily.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Power-BI-Community-Blog/bg-p/community_blog" target="_blank"&gt;Power BI Community Blog - Microsoft Fabric Community&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 09:29:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Querying-a-Fabric-SQL-Database-from-a-Notebook/m-p/4796857#M11741</guid>
      <dc:creator>v-venuppu</dc:creator>
      <dc:date>2025-08-14T09:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Querying a Fabric SQL Database from a Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Querying-a-Fabric-SQL-Database-from-a-Notebook/m-p/4797290#M11752</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1250613"&gt;@v-venuppu&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/475583"&gt;@wardy912&lt;/a&gt;&amp;nbsp;Thank you for the suggestion. I would absolutely consider turning this into a blog post. Could you help enable access to creating a blog post for me? Once I can create a blog post I will proceed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 16:02:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Querying-a-Fabric-SQL-Database-from-a-Notebook/m-p/4797290#M11752</guid>
      <dc:creator>apturlov</dc:creator>
      <dc:date>2025-08-14T16:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Querying a Fabric SQL Database from a Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Querying-a-Fabric-SQL-Database-from-a-Notebook/m-p/4799507#M11786</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1258887"&gt;@apturlov&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please follow the below Process:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Using-the-Community/Blogging-in-the-community/ta-p/4291510" target="_blank"&gt;Blogging in the community - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 08:11:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Querying-a-Fabric-SQL-Database-from-a-Notebook/m-p/4799507#M11786</guid>
      <dc:creator>v-venuppu</dc:creator>
      <dc:date>2025-08-18T08:11:57Z</dc:date>
    </item>
  </channel>
</rss>

