Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Jitendra123
Frequent Visitor

How to Lower the String Size in Fabric Tables from Varchar (8000)

I have created a Table through DataFlows in Fabric Warehouse, by default it took varchar (8000) for Text feilds

but 

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.

 

Need Help, how to lower/Minimize the String Size in Text Columns

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @Jitendra123 

 

Due to restrictions, you cannot use ALTER TABLE to modify it in the warehouse through SQL statements.

 

vnuocmsft_0-1737339236990.png

 

https://learn.microsoft.com/en-us/fabric/data-warehouse/tsql-surface-area#limitations

 

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. For example:

 

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;

 

vnuocmsft_1-1737340282105.png

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

nilendraFabric
Super User
Super User

Hi @Jitendra123 

 

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.
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:
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.

 

if this helps please accept the solution.

 

View solution in original post

2 REPLIES 2
nilendraFabric
Super User
Super User

Hi @Jitendra123 

 

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.
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:
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.

 

if this helps please accept the solution.

 

Anonymous
Not applicable

Hi @Jitendra123 

 

Due to restrictions, you cannot use ALTER TABLE to modify it in the warehouse through SQL statements.

 

vnuocmsft_0-1737339236990.png

 

https://learn.microsoft.com/en-us/fabric/data-warehouse/tsql-surface-area#limitations

 

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. For example:

 

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;

 

vnuocmsft_1-1737340282105.png

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
September Fabric Update Carousel

Fabric Monthly Update - September 2025

Check out the September 2025 Fabric update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.