<?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 mssparkutils.fabric.sql not working anymore. Has there been a change in notebookutils? in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/mssparkutils-fabric-sql-not-working-anymore-Has-there-been-a/m-p/4821604#M12250</link>
    <description>&lt;P&gt;mssparkutils.fabric.sql not working anymore. Has there been a change in notebookutils?&lt;/P&gt;&lt;P&gt;I am using this utility to write directly to fabric warehouse and skip adding a step to ingest in lakehouse and then write to warehouse in next step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Sep 2025 17:01:16 GMT</pubDate>
    <dc:creator>Ayush05-gateway</dc:creator>
    <dc:date>2025-09-09T17:01:16Z</dc:date>
    <item>
      <title>mssparkutils.fabric.sql not working anymore. Has there been a change in notebookutils?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/mssparkutils-fabric-sql-not-working-anymore-Has-there-been-a/m-p/4821604#M12250</link>
      <description>&lt;P&gt;mssparkutils.fabric.sql not working anymore. Has there been a change in notebookutils?&lt;/P&gt;&lt;P&gt;I am using this utility to write directly to fabric warehouse and skip adding a step to ingest in lakehouse and then write to warehouse in next step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 17:01:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/mssparkutils-fabric-sql-not-working-anymore-Has-there-been-a/m-p/4821604#M12250</guid>
      <dc:creator>Ayush05-gateway</dc:creator>
      <dc:date>2025-09-09T17:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: mssparkutils.fabric.sql not working anymore. Has there been a change in notebookutils?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/mssparkutils-fabric-sql-not-working-anymore-Has-there-been-a/m-p/4821644#M12252</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1250711" data-lia-user-login="Ayush05-gateway" class="lia-mention lia-mention-user"&gt;Ayush05-gateway&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This library has been renamed to NotebookUtils.&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/notebook-utilities" target="_blank"&gt;NotebookUtils (former MSSparkUtils) for Fabric - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try using NotebookUtils instead of mssparkutils.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;If you found this helpful, consider giving some Kudos. If I answered your question or solved your problem, mark this post as the solution.&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 17:38:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/mssparkutils-fabric-sql-not-working-anymore-Has-there-been-a/m-p/4821644#M12252</guid>
      <dc:creator>tayloramy</dc:creator>
      <dc:date>2025-09-09T17:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: mssparkutils.fabric.sql not working anymore. Has there been a change in notebookutils?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/mssparkutils-fabric-sql-not-working-anymore-Has-there-been-a/m-p/4821664#M12253</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1340679" data-lia-user-login="tayloramy" class="lia-mention lia-mention-user"&gt;tayloramy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using below statement :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;notebookutils&lt;/SPAN&gt; &lt;SPAN&gt;import&lt;/SPAN&gt; &lt;SPAN&gt;mssparkutils&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;df &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; mssparkutils.fabric.&lt;/SPAN&gt;&lt;SPAN&gt;sql&lt;/SPAN&gt;&lt;SPAN&gt;("&amp;lt;DWH name&amp;gt;", sql_query)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but this is not working. it was working 2 weeks ago.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Is there a documentation that i can refer to. I have already looked at the above link. there is no fabric method or sql method.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Sep 2025 18:31:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/mssparkutils-fabric-sql-not-working-anymore-Has-there-been-a/m-p/4821664#M12253</guid>
      <dc:creator>Ayush05-gateway</dc:creator>
      <dc:date>2025-09-09T18:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: mssparkutils.fabric.sql not working anymore. Has there been a change in notebookutils?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/mssparkutils-fabric-sql-not-working-anymore-Has-there-been-a/m-p/4821672#M12254</link>
      <description>&lt;P&gt;adding to above, i looked at notebookutils.data, notebookutils.warehouse but none of the 2 has any function to query warehouse.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 18:54:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/mssparkutils-fabric-sql-not-working-anymore-Has-there-been-a/m-p/4821672#M12254</guid>
      <dc:creator>Ayush05-gateway</dc:creator>
      <dc:date>2025-09-09T18:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: mssparkutils.fabric.sql not working anymore. Has there been a change in notebookutils?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/mssparkutils-fabric-sql-not-working-anymore-Has-there-been-a/m-p/4821692#M12255</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1250711" data-lia-user-login="Ayush05-gateway" class="lia-mention lia-mention-user"&gt;Ayush05-gateway&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for the extra detail. The exact call you are using:&lt;/P&gt;&lt;PRE&gt;from notebookutils import mssparkutils df = mssparkutils.fabric.sql("&amp;lt;DWH name&amp;gt;", sql_query) &lt;/PRE&gt;&lt;P&gt;is not part of the documented API. Microsoft has been moving from the old mssparkutils namespace to notebookutils. The rename is official and backward compatibility exists for many helpers, but there is no published fabric.sql method. See the rename notice and current surface here: &lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/notebook-utilities" target="_blank" rel="noopener"&gt;NotebookUtils (former MSSparkUtils) for Fabric&lt;/A&gt; and the companion note on the &lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/microsoft-spark-utilities" target="_blank" rel="noopener"&gt;MSSparkUtils page&lt;/A&gt;. Undocumented members can change between runtime updates, which likely explains why the call worked 2 weeks ago and now fails.&lt;/P&gt;&lt;H3&gt;Supported ways to query or write a Warehouse from a notebook&lt;/H3&gt;&lt;P&gt;&lt;STRONG&gt;Option 1 - Python notebook: connect and query with notebookutils.data&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The official Python-notebook experience includes data utilities to connect to a Warehouse and run T-SQL. Microsoft documents this workflow here: &lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/using-python-experience-on-notebook" target="_blank" rel="noopener"&gt;Use Python experience on Notebook&lt;/A&gt; (see the sections on Warehouse interaction and notebookutils.data; they also show the notebookutils.data.help() output and the connect_to_artifact function).&lt;/P&gt;&lt;PRE&gt;import notebookutils as nbu # Connect by name or ID (optionally pass workspace ID and artifact type) conn = nbu.data.connect_to_artifact("&amp;lt;Warehouse name or ID&amp;gt;") df = conn.query("SELECT TOP 10 * FROM dbo.YourTable;") display(df) &lt;/PRE&gt;&lt;P&gt;Docs: &lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/using-python-experience-on-notebook" target="_blank" rel="noopener"&gt;Python notebook data utilities&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Option 2 - Python notebook: use the %%tsql cell magic&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You can execute T-SQL directly in a Python notebook cell and bind to a specific Warehouse.&lt;/P&gt;&lt;PRE&gt;%%tsql --dw "&amp;lt;Warehouse name&amp;gt;" SELECT COUNT(*) AS rows_in_table FROM dbo.YourTable; &lt;/PRE&gt;&lt;P&gt;Docs: &lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/tsql-magic-command-notebook" target="_blank" rel="noopener"&gt;Run T-SQL code in Fabric Python notebooks&lt;/A&gt; and &lt;A href="https://learn.microsoft.com/en-us/fabric/data-warehouse/how-to-connect" target="_blank" rel="noopener"&gt;Connect to Fabric Data Warehouse&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Option 3 - PySpark notebook: Fabric Spark connector for Warehouse&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For Spark notebooks, use the Warehouse connector. It supports reading and, with current GA runtimes, writing via a two-phase process that uses COPY INTO under the hood.&lt;/P&gt;&lt;PRE&gt;# Read from a Warehouse table df = spark.read.synapsesql("MyWarehouse.dbo.SourceTable") # Write a Spark DataFrame to a Warehouse table df_to_write.write.mode("append").synapsesql("MyWarehouse.dbo.TargetTable") &lt;/PRE&gt;&lt;P&gt;Docs: &lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/spark-data-warehouse-connector" target="_blank" rel="noopener"&gt;Spark connector for Microsoft Fabric Data Warehouse&lt;/A&gt;.&lt;/P&gt;&lt;H3&gt;Why you did not find fabric.sql in docs&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;The supported NotebookUtils areas cover files, environment, chaining notebooks, secrets, and, in Python notebooks, notebookutils.data for Warehouse connections. There is no published mssparkutils.fabric.sql or notebookutils.fabric.sql.&lt;/LI&gt;&lt;LI&gt;The rename to NotebookUtils is official; new features land under notebookutils while the mssparkutils namespace will be retired.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;If you found this helpful, consider giving some Kudos. If I answered your question or solved your problem, please mark this as the solution.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 19:21:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/mssparkutils-fabric-sql-not-working-anymore-Has-there-been-a/m-p/4821692#M12255</guid>
      <dc:creator>tayloramy</dc:creator>
      <dc:date>2025-09-09T19:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: mssparkutils.fabric.sql not working anymore. Has there been a change in notebookutils?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/mssparkutils-fabric-sql-not-working-anymore-Has-there-been-a/m-p/4821722#M12256</link>
      <description>&lt;P&gt;thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1340679" data-lia-user-login="tayloramy" class="lia-mention lia-mention-user"&gt;tayloramy&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;I was using pyspark mode, changed to python mode and got it working.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 20:24:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/mssparkutils-fabric-sql-not-working-anymore-Has-there-been-a/m-p/4821722#M12256</guid>
      <dc:creator>Ayush05-gateway</dc:creator>
      <dc:date>2025-09-09T20:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: mssparkutils.fabric.sql not working anymore. Has there been a change in notebookutils?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/mssparkutils-fabric-sql-not-working-anymore-Has-there-been-a/m-p/4821723#M12257</link>
      <description>&lt;P&gt;Glad to hear it!&amp;nbsp;&lt;BR /&gt;Happy I could help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 20:25:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/mssparkutils-fabric-sql-not-working-anymore-Has-there-been-a/m-p/4821723#M12257</guid>
      <dc:creator>tayloramy</dc:creator>
      <dc:date>2025-09-09T20:25:23Z</dc:date>
    </item>
  </channel>
</rss>

