<?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: SQL Database (preview) in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/SQL-Database-preview/m-p/4675222#M8981</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/213397"&gt;@spartan27244&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I am not wrong When you use SQL Database (preview) in Microsoft Fabric, the platform automatically replicates your data into OneLake and converts it to Parquet/Delta tables in an analytics-ready format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;df = spark.sql("""&lt;BR /&gt;SELECT *&lt;BR /&gt;FROM [YourSQLDatabaseName].[dbo].[YourTable]&lt;BR /&gt;""")&lt;/P&gt;&lt;P&gt;&amp;nbsp;Or&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;df = spark.read.table("[YourSQLDatabaseName].[dbo].[YourTable]")&lt;/P&gt;&lt;P&gt;display(df)&lt;/P&gt;</description>
    <pubDate>Wed, 30 Apr 2025 20:24:12 GMT</pubDate>
    <dc:creator>nilendraFabric</dc:creator>
    <dc:date>2025-04-30T20:24:12Z</dc:date>
    <item>
      <title>SQL Database (preview)</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/SQL-Database-preview/m-p/4675149#M8978</link>
      <description>&lt;P&gt;when using the data warehouse feature of Fabric in PySpark I can connect to the data warehouse and run a query as so...&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;df&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;spark&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;read&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;option&lt;/SPAN&gt;&lt;SPAN&gt;(Constants.DatabaseName, &lt;/SPAN&gt;&lt;SPAN&gt;DataWarehouse&lt;/SPAN&gt;&lt;SPAN&gt;).synapsesql(&lt;/SPAN&gt;&lt;SPAN&gt;SQL&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;with the addition of the SQL database in Fabric how do I query that in PySpark?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;NOTE: I am new at this.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 30 Apr 2025 18:28:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/SQL-Database-preview/m-p/4675149#M8978</guid>
      <dc:creator>spartan27244</dc:creator>
      <dc:date>2025-04-30T18:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Database (preview)</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/SQL-Database-preview/m-p/4675222#M8981</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/213397"&gt;@spartan27244&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I am not wrong When you use SQL Database (preview) in Microsoft Fabric, the platform automatically replicates your data into OneLake and converts it to Parquet/Delta tables in an analytics-ready format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;df = spark.sql("""&lt;BR /&gt;SELECT *&lt;BR /&gt;FROM [YourSQLDatabaseName].[dbo].[YourTable]&lt;BR /&gt;""")&lt;/P&gt;&lt;P&gt;&amp;nbsp;Or&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;df = spark.read.table("[YourSQLDatabaseName].[dbo].[YourTable]")&lt;/P&gt;&lt;P&gt;display(df)&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 20:24:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/SQL-Database-preview/m-p/4675222#M8981</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-04-30T20:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Database (preview)</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/SQL-Database-preview/m-p/4675236#M8987</link>
      <description>&lt;P&gt;I believe you are referring to the scenario where I have an Azure SQL database and select from that Azure database to Replicate in Fabric.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am referring to is within fabric you can now create a SQL database, which I did. Those tables are not reflected as delta tabless so I am trying to figure out how to read this data in PySpark.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 20:48:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/SQL-Database-preview/m-p/4675236#M8987</guid>
      <dc:creator>spartan27244</dc:creator>
      <dc:date>2025-04-30T20:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Database (preview)</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/SQL-Database-preview/m-p/4675547#M8992</link>
      <description>&lt;P&gt;Data querying within the SQL database (preview) from a notebook is feasible only when the default language of the notebook is set to T-SQL. Upon switching the language to PySpark or Python, querying capabilities are limited to the Lakehouse, and not the databases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So currently, to execute any PySpark notebooks on the SQL database data, it is necessary to first ingest the data from the database into the Lakehouse using pipelines. Subsequently, PySpark notebooks can be run on the ingested data&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 07:58:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/SQL-Database-preview/m-p/4675547#M8992</guid>
      <dc:creator>Ranganath_M</dc:creator>
      <dc:date>2025-05-01T07:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Database (preview)</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/SQL-Database-preview/m-p/4675952#M9002</link>
      <description>&lt;P&gt;That does appear to be the case although the documentaion and videos do not address this at all. Hopefully&amp;nbsp;Microsoft will relize the importance of this.&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 13:51:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/SQL-Database-preview/m-p/4675952#M9002</guid>
      <dc:creator>spartan27244</dc:creator>
      <dc:date>2025-05-01T13:51:14Z</dc:date>
    </item>
  </channel>
</rss>

