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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Warehouse DDL Support for ALTER COLUMN

Could the DDL-support in Warehouse get closer to what we have in Synapse/SQL Server?

ALTER COLUMN would be much approciated.

 

Status: Planned
Comments
TwinkleCyril
Microsoft Employee
We are actively working on adding the ALTER TABLE ALTER COLUMN (NULLABLE) support in Warehouse. Just wanted to understand your specific requirements and use cases around it. Are you specifically looking for capability to change the data type of a column to accommodate large or precise value without table reconstruction?
CharlesWebbMSFT
Microsoft Employee
Status changed to: Planned
 
JochenAbild
Regular Visitor

Thanks for the feedback and for planning the enhancement. To answer the question: yes

In the end it would be great to have the same ALTER COLUMN possibilities as with SQL Server on premise

CloudVasu
Helper I
@ CharlesWebbMSFT Hi Charles Webb, We deployed a table to a Microsoft Fabric workspace and originally one of the columns was created as DATE. Later we changed that column type to DATETIME2 in our SQL project and tried to deploy through DACPAC / CI-CD. During deployment, Fabric generates an ALTER TABLE ... ALTER COLUMN statement and fails because this operation is not currently supported. At the moment, the only workaround I’ve found is to drop and recreate the table, but that’s not ideal for a production deployment process. I remember you mentioned earlier that improvements around this area were being worked on, so I wanted to ask: Has support for altering column data types via DACPAC been added yet? If not, what is the recommended best practice for CI-CD deployments when changing a column from DATE to DATETIME2 without dropping and recreating the table manually? Is there any roadmap for broader ALTER TABLE support in Fabric Warehouse? Would appreciate any guidance.