<?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: Best ways to write a Pandas Dataframe on Fabric SQL Database in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Best-ways-to-write-a-Pandas-Dataframe-on-Fabric-SQL-Database/m-p/4830716#M12428</link>
    <description>&lt;P&gt;Yes but how can I save a dataframe from pandas into a SQL database table, my question remains.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Sep 2025 13:50:30 GMT</pubDate>
    <dc:creator>dpombal</dc:creator>
    <dc:date>2025-09-19T13:50:30Z</dc:date>
    <item>
      <title>Best ways to write a Pandas Dataframe on Fabric SQL Database</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Best-ways-to-write-a-Pandas-Dataframe-on-Fabric-SQL-Database/m-p/4830517#M12424</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am reading a REST API using Python and converting data in Pandas dataframe.&lt;/P&gt;&lt;P&gt;Now I am looking for the best fabric Item to store data and use SQL databases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not want to use a lakehouse so I&amp;nbsp; think Warehouse is not the best option and I am trying preview SQL Database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As there are no built in connectors I am thinking using SQL Alchemy / pyodbc , any recommendations?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am migrating python code which works and stores data in an on premise SQL Server...and I am trying to migrate to a Fabric workspace with full SQL capabilities.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which are best options to STORE dataframes as sql tables,,, and which are the best connection methods... entra id login, user/password,...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2025 10:13:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Best-ways-to-write-a-Pandas-Dataframe-on-Fabric-SQL-Database/m-p/4830517#M12424</guid>
      <dc:creator>dpombal</dc:creator>
      <dc:date>2025-09-19T10:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Best ways to write a Pandas Dataframe on Fabric SQL Database</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Best-ways-to-write-a-Pandas-Dataframe-on-Fabric-SQL-Database/m-p/4830712#M12427</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/22267"&gt;@dpombal&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See this blog post:&amp;nbsp;&lt;A href="https://blog.fabric.microsoft.com/en-US/blog/connect-to-your-sql-database-in-fabric-using-python-notebook/" target="_blank"&gt;Connect to your SQL database in Fabric using Python Notebook | Microsoft Fabric Blog | Microsoft Fabric&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you add a T-SQL cell to your notebook and add&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;“%%tsql -artifact &amp;lt;databasename&amp;gt; -type SQLDatabase”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;you should be able to connect to your SQL database.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&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, mark this post as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2025 13:46:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Best-ways-to-write-a-Pandas-Dataframe-on-Fabric-SQL-Database/m-p/4830712#M12427</guid>
      <dc:creator>tayloramy</dc:creator>
      <dc:date>2025-09-19T13:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Best ways to write a Pandas Dataframe on Fabric SQL Database</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Best-ways-to-write-a-Pandas-Dataframe-on-Fabric-SQL-Database/m-p/4830716#M12428</link>
      <description>&lt;P&gt;Yes but how can I save a dataframe from pandas into a SQL database table, my question remains.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2025 13:50:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Best-ways-to-write-a-Pandas-Dataframe-on-Fabric-SQL-Database/m-p/4830716#M12428</guid>
      <dc:creator>dpombal</dc:creator>
      <dc:date>2025-09-19T13:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Best ways to write a Pandas Dataframe on Fabric SQL Database</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Best-ways-to-write-a-Pandas-Dataframe-on-Fabric-SQL-Database/m-p/4830739#M12429</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/22267"&gt;@dpombal&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/database/sql/connect" target="_blank" rel="noopener"&gt;Connect to Your SQL Database - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;H2&gt;Connect with Python Notebook&lt;/H2&gt;&lt;/DIV&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/using-python-experience-on-notebook" target="_blank" rel="noopener"&gt;Fabric Python Notebooks&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(preview) offer the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/tsql-magic-command-notebook" target="_blank" rel="noopener"&gt;ability to run T-SQL code with the T-SQL magic command&lt;/A&gt;. In the following steps, connect to a SQL database in Fabric using the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;%%tsql&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;magic command:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Create a notebook in your workspace with the language set to Python.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;In a cell, use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;%%tsql&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;magic command. The cell type automatically changes to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;T-SQL.&lt;/P&gt;&lt;P&gt;In the following sample, replace&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;lt;databasename&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;with the name of your SQL database in Fabric. The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;-type&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parameter should be&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;SQLDatabase.&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Python&lt;/SPAN&gt;&lt;SPAN&gt;Copy&lt;/SPAN&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;%%tsql -artifact &amp;lt;databasename&amp;gt; -type SQLDatabase&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Then include your T-SQL command. For example, to run a query from a database named&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Contoso:&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Python&lt;/SPAN&gt;&lt;SPAN&gt;Copy&lt;/SPAN&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;%%tsql -artifact Contoso -type SQLDatabase
SELECT * FROM SalesLT.Customer;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;You can also bind the results to a dataframe with the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;-bind&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;argument:&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Python&lt;/SPAN&gt;&lt;SPAN&gt;Copy&lt;/SPAN&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;%%tsql -artifact Contoso -type SQLDatabase -bind df2&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;For more possibilities to query your data with T-SQL inside Python Notebooks, see&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&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;. To see the full syntax, use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;%tsql?&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;command. This command displays the help information for the T-SQL magic command, including the available parameters and their descriptions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&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, mark this post as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2025 13:59:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Best-ways-to-write-a-Pandas-Dataframe-on-Fabric-SQL-Database/m-p/4830739#M12429</guid>
      <dc:creator>tayloramy</dc:creator>
      <dc:date>2025-09-19T13:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Best ways to write a Pandas Dataframe on Fabric SQL Database</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Best-ways-to-write-a-Pandas-Dataframe-on-Fabric-SQL-Database/m-p/4831058#M12434</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/22267"&gt;@dpombal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can convert pandas dataframe to lakehouse/warehouse using python programming language.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SQL Database = Lakehouse = Fabric Warehouse = Power BI Direct Lake Semantic Model. They all are same. Simple and Sweet.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Sep 2025 08:34:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Best-ways-to-write-a-Pandas-Dataframe-on-Fabric-SQL-Database/m-p/4831058#M12434</guid>
      <dc:creator>BhaveshPatel</dc:creator>
      <dc:date>2025-09-20T08:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Best ways to write a Pandas Dataframe on Fabric SQL Database</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Best-ways-to-write-a-Pandas-Dataframe-on-Fabric-SQL-Database/m-p/4831075#M12438</link>
      <description>&lt;P&gt;can you be more specific we are having issues with data types in Spark dataframes, and this ir the reason to avoid using lakehouse or Warehouse...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a program using pandas dataframes, how to save/store them in sql database in an fast/efficient way without having to convert to other types&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Sep 2025 09:38:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Best-ways-to-write-a-Pandas-Dataframe-on-Fabric-SQL-Database/m-p/4831075#M12438</guid>
      <dc:creator>dpombal</dc:creator>
      <dc:date>2025-09-20T09:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Best ways to write a Pandas Dataframe on Fabric SQL Database</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Best-ways-to-write-a-Pandas-Dataframe-on-Fabric-SQL-Database/m-p/4831076#M12439</link>
      <description>&lt;P&gt;This option is perfect for writing from a table to a dataframe df2&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;%%tsql -artifact Contoso -type SQLDatabase -bind df2&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am looking for the inverse option writing from a pandas dataframe into a SQL Database table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your help/suggestions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Sep 2025 09:40:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Best-ways-to-write-a-Pandas-Dataframe-on-Fabric-SQL-Database/m-p/4831076#M12439</guid>
      <dc:creator>dpombal</dc:creator>
      <dc:date>2025-09-20T09:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Best ways to write a Pandas Dataframe on Fabric SQL Database</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Best-ways-to-write-a-Pandas-Dataframe-on-Fabric-SQL-Database/m-p/4831909#M12455</link>
      <description>&lt;P&gt;I still cannot write in an easy way this is for reading only&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 07:07:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Best-ways-to-write-a-Pandas-Dataframe-on-Fabric-SQL-Database/m-p/4831909#M12455</guid>
      <dc:creator>dpombal</dc:creator>
      <dc:date>2025-09-22T07:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Best ways to write a Pandas Dataframe on Fabric SQL Database</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Best-ways-to-write-a-Pandas-Dataframe-on-Fabric-SQL-Database/m-p/4831911#M12456</link>
      <description>&lt;P&gt;Having problems converting python pandas df to spark so i still want to use pandas with SQL connect to SQL Database using user password or some kind of entra app token&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 07:08:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Best-ways-to-write-a-Pandas-Dataframe-on-Fabric-SQL-Database/m-p/4831911#M12456</guid>
      <dc:creator>dpombal</dc:creator>
      <dc:date>2025-09-22T07:08:23Z</dc:date>
    </item>
  </channel>
</rss>

