<?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 How to Lower the String Size in Fabric Tables from Varchar (8000) in Dataflow</title>
    <link>https://community.fabric.microsoft.com/t5/Dataflow/How-to-Lower-the-String-Size-in-Fabric-Tables-from-Varchar-8000/m-p/4370551#M4767</link>
    <description>&lt;P&gt;I have created a Table through DataFlows in Fabric Warehouse, by default it took varchar (8000) for Text feilds&lt;/P&gt;&lt;P&gt;but&amp;nbsp;&lt;/P&gt;&lt;P&gt;At times, for large queries/Viewsa, it will run into an error with the maximum in memory tablesize is not big enough but a lot of the space reserved is not actually required but is due to the field definitions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need Help, how to lower/Minimize the String Size in Text Columns&lt;/P&gt;</description>
    <pubDate>Sun, 19 Jan 2025 08:37:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-01-19T08:37:41Z</dc:date>
    <item>
      <title>How to Lower the String Size in Fabric Tables from Varchar (8000)</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/How-to-Lower-the-String-Size-in-Fabric-Tables-from-Varchar-8000/m-p/4370551#M4767</link>
      <description>&lt;P&gt;I have created a Table through DataFlows in Fabric Warehouse, by default it took varchar (8000) for Text feilds&lt;/P&gt;&lt;P&gt;but&amp;nbsp;&lt;/P&gt;&lt;P&gt;At times, for large queries/Viewsa, it will run into an error with the maximum in memory tablesize is not big enough but a lot of the space reserved is not actually required but is due to the field definitions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need Help, how to lower/Minimize the String Size in Text Columns&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jan 2025 08:37:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/How-to-Lower-the-String-Size-in-Fabric-Tables-from-Varchar-8000/m-p/4370551#M4767</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-19T08:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Lower the String Size in Fabric Tables from Varchar (8000)</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/How-to-Lower-the-String-Size-in-Fabric-Tables-from-Varchar-8000/m-p/4370933#M4769</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Due to restrictions, you cannot use ALTER TABLE to modify it in the warehouse through SQL statements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="https://learn.microsoft.com/en-us/fabric/data-warehouse/tsql-surface-area#limitations" href="https://learn.microsoft.com/en-us/fabric/data-warehouse/tsql-surface-area#limitations" target="_blank" rel="noreferrer noopener"&gt;https://learn.microsoft.com/en-us/fabric/data-warehouse/tsql-surface-area#limitations&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my testing, I tried to solve the problem by creating a new table. This method creates a new table structure to replace the original table structure, and then migrates the data to the new table.&amp;nbsp;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CREATE TABLE New_TABLE (
    id INT,
    name VARCHAR(200), --New DataTypes
    Job VARCHAR(500)
);

INSERT INTO TesT_TABLE (id, name, Job)
SELECT Old_Column1, Old_Column2, Old_Column3
FROM Old_table;

DROP TABLE Old_table;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 02:32:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/How-to-Lower-the-String-Size-in-Fabric-Tables-from-Varchar-8000/m-p/4370933#M4769</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-20T02:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to Lower the String Size in Fabric Tables from Varchar (8000)</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/How-to-Lower-the-String-Size-in-Fabric-Tables-from-Varchar-8000/m-p/4372305#M4777</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, Microsoft Fabric’s data warehouse has a limitation on varchar data types, enforcing a maximum length of around 8,000 characters for varchar fields. This limitation can cause issues with large queries or views, as you’ve experienced.&lt;BR /&gt;Unfortunately, there is no direct way to alter the varchar size in Fabric tables created through DataFlows. The system automatically assigns varchar(8000) to text fields for compatibility and to avoid potential data truncation. However, there are a few strategies you can consider to address this issue:&lt;BR /&gt;1. Use Lakehouse Instead For columns that genuinely require more than 8,000 characters, consider using a Lakehouse instead of a warehouse. Lakehouses in Fabric can handle larger text fields without the 8,000-character limitation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if this helps please accept the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 18:02:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/How-to-Lower-the-String-Size-in-Fabric-Tables-from-Varchar-8000/m-p/4372305#M4777</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-01-20T18:02:49Z</dc:date>
    </item>
  </channel>
</rss>

