<?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: Right workaround to solve the unsupported Truncate Table in Data Warehouse</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4030112#M1205</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've voted this idea:&amp;nbsp;&lt;A href="https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=2d450205-8ce1-ee11-a73e-00224852272b" target="_self"&gt;Support TRUNCATE TABLE in Fabric Warehouse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2024 11:41:39 GMT</pubDate>
    <dc:creator>pmscorca</dc:creator>
    <dc:date>2024-07-08T11:41:39Z</dc:date>
    <item>
      <title>Right workaround to solve the unsupported Truncate Table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4003478#M1131</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;during some tests to feed some warehouse tables I've noticed that the TRUNCATE TABLE is unsupported. This is a serious lack for Fabric!&lt;/P&gt;&lt;P&gt;The statement is supported by SQL Server and Synapse Analytics without any issues.&lt;/P&gt;&lt;P&gt;I'd like know because this feature isn't supported.&lt;/P&gt;&lt;P&gt;For now, I've solved using a DELETE statement, but is it the right workaround to apply? A lakehouse/warehouse is based on delta tables: could using a DELETE statement be a bad practice against delta tables?&lt;/P&gt;&lt;P&gt;If possible, I would avoid to use a DROP TABLE and a CREATE TABLE statement.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 07:25:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4003478#M1131</guid>
      <dc:creator>pmscorca</dc:creator>
      <dc:date>2024-06-21T07:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Right workaround to solve the unsupported Truncate Table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4003814#M1132</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="719515" data-lia-user-login="pmscorca" class="lia-mention lia-mention-user"&gt;pmscorca&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for using Microsoft Fabric Community.&lt;/P&gt;
&lt;P&gt;I understand your concern about the lack of support for the TRUNCATE TABLE statement in Microsoft Fabric. The reason for this limitation is due to the architecture of Fabric, which is designed to work with delta tables and lakehouse storage. TRUNCATE TABLE is a SQL Server-specific statement that is optimized for relational databases, and it doesn't translate well to the distributed, columnar storage of Fabric. In Fabric, tables are composed of multiple files, and TRUNCATE TABLE would require rewriting the entire table, which could be inefficient and lead to data inconsistencies. &lt;BR /&gt;&lt;BR /&gt;Using a DELETE statement is a viable workaround, it's important to consider its limitations. DELETE statements can be slower and more resource-intensive than TRUNCATE TABLE, especially for large tables. Additionally, DELETE statements can leave behind empty files, which can lead to storage inefficiencies. &lt;BR /&gt;&lt;BR /&gt;A better approach might be to use the VACUUM statement, which is specifically designed for delta tables in Fabric. VACUUM removes all data from a table, including files and metadata, making it a more efficient and storage-friendly option. &lt;BR /&gt;If you need to completely remove a table, using a DROP TABLE statement followed by a CREATE TABLE statement is a valid approach. While it may seem cumbersome, it ensures that the table is properly removed and recreated, which can be important for data consistency and integrity. &lt;BR /&gt;&lt;BR /&gt;In summary, while TRUNCATE TABLE is not supported in Fabric, using DELETE or VACUUM statements can be viable workarounds, depending on your specific use case. If you need to completely remove a table, using DROP TABLE and CREATE TABLE statements is a safe and reliable approach.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this information helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 09:51:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4003814#M1132</guid>
      <dc:creator>v-cboorla-msft</dc:creator>
      <dc:date>2024-06-21T09:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Right workaround to solve the unsupported Truncate Table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4003870#M1133</link>
      <description>&lt;P&gt;Hi, I need to delete all data as the TRUNCATE TABLE statement does.&lt;/P&gt;&lt;P&gt;In order to use the VACUUM (T-SQL) statement, where could I find the official documentation to delete all data of a warehouse table?&lt;/P&gt;&lt;P&gt;I need to use the VACUUM statement as a pre-copy script in a copy activity.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 10:29:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4003870#M1133</guid>
      <dc:creator>pmscorca</dc:creator>
      <dc:date>2024-06-21T10:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Right workaround to solve the unsupported Truncate Table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4004504#M1135</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="719515" data-lia-user-login="pmscorca" class="lia-mention lia-mention-user"&gt;pmscorca&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to the similar thread which might help you.&lt;/P&gt;
&lt;P&gt;Thread link :&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Data-Warehouse/Warehouse-VACUUM-or-RESTORE/m-p/3733172" target="_blank"&gt;Solved: Warehouse - VACUUM or RESTORE? - 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>Fri, 21 Jun 2024 17:08:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4004504#M1135</guid>
      <dc:creator>v-cboorla-msft</dc:creator>
      <dc:date>2024-06-21T17:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Right workaround to solve the unsupported Truncate Table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4004692#M1137</link>
      <description>&lt;P&gt;Hi, ok but I don't think to VACUUM as a statement for maintenance purpose, but for cleaning a staging table before a new data loading.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 20:02:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4004692#M1137</guid>
      <dc:creator>pmscorca</dc:creator>
      <dc:date>2024-06-21T20:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Right workaround to solve the unsupported Truncate Table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4015786#M1150</link>
      <description>&lt;P&gt;Unfortunately VACUUM is not a statement that can be executed on a Fabric Warehouse table.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 14:05:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4015786#M1150</guid>
      <dc:creator>AndyDDC</dc:creator>
      <dc:date>2024-06-28T14:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Right workaround to solve the unsupported Truncate Table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4027168#M1196</link>
      <description>&lt;P&gt;this is bad, I am finding fabric much less versatile than databricks. TRUNCATE is a property of delta tables, it should be allowed!&lt;/P&gt;&lt;P&gt;There is also no support for SHOW CREATE TABLE!&lt;/P&gt;&lt;P&gt;VACUUM is not a viavble substitute and DROP AND CREATE is too time consuming&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 14:10:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4027168#M1196</guid>
      <dc:creator>FrancescoPwc</dc:creator>
      <dc:date>2024-07-05T14:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Right workaround to solve the unsupported Truncate Table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4030112#M1205</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've voted this idea:&amp;nbsp;&lt;A href="https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=2d450205-8ce1-ee11-a73e-00224852272b" target="_self"&gt;Support TRUNCATE TABLE in Fabric Warehouse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 11:41:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4030112#M1205</guid>
      <dc:creator>pmscorca</dc:creator>
      <dc:date>2024-07-08T11:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Right workaround to solve the unsupported Truncate Table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4092906#M1411</link>
      <description>&lt;P&gt;TRUNCATE Table is now generally available is Microsoft Fabric DW. Review&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/sql/t-sql/statements/truncate-table-transact-sql?view=fabric#syntax" target="_blank"&gt;TRUNCATE TABLE (Transact-SQL) - SQL Server | Microsoft Learn&lt;/A&gt;&amp;nbsp;for more details.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2024 05:13:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4092906#M1411</guid>
      <dc:creator>TwinkleCyril</dc:creator>
      <dc:date>2024-08-10T05:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Right workaround to solve the unsupported Truncate Table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4096668#M1413</link>
      <description>&lt;P&gt;Hi, this is a good new but the Fabric Updates blog doesn't seem updated. Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 05:36:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4096668#M1413</guid>
      <dc:creator>pmscorca</dc:creator>
      <dc:date>2024-08-13T05:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Right workaround to solve the unsupported Truncate Table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4098575#M1416</link>
      <description>&lt;P&gt;It will be available in Aug blog.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 21:45:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4098575#M1416</guid>
      <dc:creator>TwinkleCyril</dc:creator>
      <dc:date>2024-08-13T21:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Right workaround to solve the unsupported Truncate Table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4124682#M1522</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="719515" data-lia-user-login="pmscorca" class="lia-mention lia-mention-user"&gt;pmscorca&lt;/a&gt;&amp;nbsp;TRUNCATE table is now supported in Fabric Warehouses&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-gb/sql/t-sql/statements/truncate-table-transact-sql?view=sql-server-ver16" target="_blank"&gt;TRUNCATE TABLE (Transact-SQL) - SQL Server | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 09:00:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4124682#M1522</guid>
      <dc:creator>AndyDDC</dc:creator>
      <dc:date>2024-08-29T09:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Right workaround to solve the unsupported Truncate Table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4124702#M1523</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="265587" data-lia-user-login="AndyDDC" class="lia-mention lia-mention-user"&gt;AndyDDC&lt;/a&gt;&amp;nbsp;is it available also on lakehouse tables? (from lakehouse SQL Endpoint and Spark sql from notebooks?)&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 09:07:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Right-workaround-to-solve-the-unsupported-Truncate-Table/m-p/4124702#M1523</guid>
      <dc:creator>FrancescoPwc</dc:creator>
      <dc:date>2024-08-29T09:07:52Z</dc:date>
    </item>
  </channel>
</rss>

