<?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 Data Warehouse Alter Table add default value constraint in Data Warehouse</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Data-Warehouse-Alter-Table-add-default-value-constraint/m-p/3862509#M696</link>
    <description>&lt;P&gt;I have been trying to add a DEFAULT constraint to a COLUMN.&amp;nbsp; I saw at least one 2023 post stating to check SQL surface area that, as it read says that the ALTER TABLE is not supported, I added a PRIMARY KEY CONSTRAINT using an ALTER TABLE... it just works and therefore the documentation may need some updates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not found any sample or discussion on the use of ALTER TABLE to specify a DEFAULT value.&amp;nbsp; Since the documentation is not current there may be a way... the samples of ALTER TABLE to add a DEFAULT CONSTRAINT works well in on-prem SQL-SERVER but not in Microsoft Fabric Data Warehouse.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that someone have some news about this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Apr 2024 13:37:54 GMT</pubDate>
    <dc:creator>esobrino</dc:creator>
    <dc:date>2024-04-23T13:37:54Z</dc:date>
    <item>
      <title>Data Warehouse Alter Table add default value constraint</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Data-Warehouse-Alter-Table-add-default-value-constraint/m-p/3862509#M696</link>
      <description>&lt;P&gt;I have been trying to add a DEFAULT constraint to a COLUMN.&amp;nbsp; I saw at least one 2023 post stating to check SQL surface area that, as it read says that the ALTER TABLE is not supported, I added a PRIMARY KEY CONSTRAINT using an ALTER TABLE... it just works and therefore the documentation may need some updates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not found any sample or discussion on the use of ALTER TABLE to specify a DEFAULT value.&amp;nbsp; Since the documentation is not current there may be a way... the samples of ALTER TABLE to add a DEFAULT CONSTRAINT works well in on-prem SQL-SERVER but not in Microsoft Fabric Data Warehouse.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that someone have some news about this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 13:37:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Data-Warehouse-Alter-Table-add-default-value-constraint/m-p/3862509#M696</guid>
      <dc:creator>esobrino</dc:creator>
      <dc:date>2024-04-23T13:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Data Warehouse Alter Table add default value constraint</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Data-Warehouse-Alter-Table-add-default-value-constraint/m-p/3865577#M697</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="728882" data-lia-user-login="esobrino" class="lia-mention lia-mention-user"&gt;esobrino&lt;/a&gt;&amp;nbsp;default constraints are not supported currently as per the documenation here:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-warehouse/table-constraints" target="_blank"&gt;Primary, foreign, and unique keys - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SQL analytics endpoint and Warehouse don't support default constraints at this time.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;There's no news when they will be public either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ALTER TABLE support in the T-SQL Surface Area documenation states "&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ALTER TABLE ADD/ALTER/DROP COLUMN&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;And as you've discovered, ALTER TABLE is supported when creating unique, primary key, and foreign key constraints.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-warehouse/tsql-surface-area" target="_blank"&gt;T-SQL surface area - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------&lt;/P&gt;&lt;P&gt;If my post has been useful, please consider&amp;nbsp;&lt;/P&gt;&lt;P&gt;provising Kudos and/or accepting as the Solution&lt;/P&gt;&lt;P&gt;-------------------------------------------------------&lt;/P&gt;&lt;P&gt;-----------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 13:13:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Data-Warehouse-Alter-Table-add-default-value-constraint/m-p/3865577#M697</guid>
      <dc:creator>AndyDDC</dc:creator>
      <dc:date>2024-04-24T13:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Data Warehouse Alter Table add default value constraint</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Data-Warehouse-Alter-Table-add-default-value-constraint/m-p/4600640#M2660</link>
      <description>&lt;P&gt;Hi Team&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please let me know when the DEFAULT CONSTRAINTS will be added to Fabric Warehouse.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Keerthinath.C.M&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 15:08:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Data-Warehouse-Alter-Table-add-default-value-constraint/m-p/4600640#M2660</guid>
      <dc:creator>Keerthinath_Joz</dc:creator>
      <dc:date>2025-03-07T15:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Data Warehouse Alter Table add default value constraint</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Data-Warehouse-Alter-Table-add-default-value-constraint/m-p/5359741#M4792</link>
      <description>&lt;P&gt;Isn't this a pain.&amp;nbsp; &amp;nbsp;I would love to know if this is on the road map.&amp;nbsp; I'd like to understand the mechanisms in place with columnar store and parquet that causes this to be a problem.&amp;nbsp; I would think that maybe delta table/sql interpreter could be made to allow this.&amp;nbsp; Anyone want to comment?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2026 21:19:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Data-Warehouse-Alter-Table-add-default-value-constraint/m-p/5359741#M4792</guid>
      <dc:creator>DC_KTotten</dc:creator>
      <dc:date>2026-08-17T21:19:49Z</dc:date>
    </item>
  </channel>
</rss>

