<?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 Microsoft Fabric - Synapse Warehouse - DDL Script Generation in Data Warehouse</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Microsoft-Fabric-Synapse-Warehouse-DDL-Script-Generation/m-p/4112680#M1465</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once we create a table in the Database, then we can able to DESCRIBE the table in the query window using DESC command or we can generate the CREATE SQL or get the table DDL script from Metadata tables for already created tables in the database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sameway I am trying to get the DDL script, But not able to find the option in Microsoft Fabric Warehouse.&lt;BR /&gt;&lt;BR /&gt;DESC --&amp;gt; not working in Fabric Warehouse&lt;BR /&gt;Tried below SQL, but not getting the expected DDL for the table&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECT&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;sm.definition&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FROM&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;sys.sql_modules &lt;/SPAN&gt;&lt;SPAN&gt;AS&lt;/SPAN&gt;&lt;SPAN&gt; sm&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;JOIN&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;sys.objects &lt;/SPAN&gt;&lt;SPAN&gt;AS&lt;/SPAN&gt;&lt;SPAN&gt; o &lt;/SPAN&gt;&lt;SPAN&gt;ON&lt;/SPAN&gt;&lt;SPAN&gt; sm.&lt;/SPAN&gt;&lt;SPAN&gt;object_id&lt;/SPAN&gt;&lt;SPAN&gt; = o.&lt;/SPAN&gt;&lt;SPAN&gt;object_id&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WHERE&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;o.name =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'TableName'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Can you suggest the option if anything available in Microsoft Fabric Warehouse.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Sathish Kumar Mathivanan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2024 06:00:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-08-22T06:00:02Z</dc:date>
    <item>
      <title>Microsoft Fabric - Synapse Warehouse - DDL Script Generation</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Microsoft-Fabric-Synapse-Warehouse-DDL-Script-Generation/m-p/4112680#M1465</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once we create a table in the Database, then we can able to DESCRIBE the table in the query window using DESC command or we can generate the CREATE SQL or get the table DDL script from Metadata tables for already created tables in the database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sameway I am trying to get the DDL script, But not able to find the option in Microsoft Fabric Warehouse.&lt;BR /&gt;&lt;BR /&gt;DESC --&amp;gt; not working in Fabric Warehouse&lt;BR /&gt;Tried below SQL, but not getting the expected DDL for the table&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECT&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;sm.definition&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FROM&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;sys.sql_modules &lt;/SPAN&gt;&lt;SPAN&gt;AS&lt;/SPAN&gt;&lt;SPAN&gt; sm&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;JOIN&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;sys.objects &lt;/SPAN&gt;&lt;SPAN&gt;AS&lt;/SPAN&gt;&lt;SPAN&gt; o &lt;/SPAN&gt;&lt;SPAN&gt;ON&lt;/SPAN&gt;&lt;SPAN&gt; sm.&lt;/SPAN&gt;&lt;SPAN&gt;object_id&lt;/SPAN&gt;&lt;SPAN&gt; = o.&lt;/SPAN&gt;&lt;SPAN&gt;object_id&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WHERE&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;o.name =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'TableName'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Can you suggest the option if anything available in Microsoft Fabric Warehouse.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Sathish Kumar Mathivanan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 06:00:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Microsoft-Fabric-Synapse-Warehouse-DDL-Script-Generation/m-p/4112680#M1465</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-22T06:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Fabric - Synapse Warehouse - DDL Script Generation</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Microsoft-Fabric-Synapse-Warehouse-DDL-Script-Generation/m-p/4112840#M1467</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;AFAIK, the DESCRIBE&amp;nbsp;current only work when you use notebook to operate with lakehouse delta table. For data warehouse tables, they seems not able to used with DESCRIBE&amp;nbsp;commands.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you can try to move this to the lakehouse and use notebook with these commands.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 07:00:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Microsoft-Fabric-Synapse-Warehouse-DDL-Script-Generation/m-p/4112840#M1467</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-22T07:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Fabric - Synapse Warehouse - DDL Script Generation</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Microsoft-Fabric-Synapse-Warehouse-DDL-Script-Generation/m-p/4112858#M1468</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can't move the solution to Lakehouse.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Other than DESCRIBE, Do we have any other option like any metadata tables contains the DDL ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sathish Kumar Mathivanan&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 07:07:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Microsoft-Fabric-Synapse-Warehouse-DDL-Script-Generation/m-p/4112858#M1468</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-22T07:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Fabric - Synapse Warehouse - DDL Script Generation</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Microsoft-Fabric-Synapse-Warehouse-DDL-Script-Generation/m-p/4115134#M1477</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;I'd like to suggest you use query to list the views under the&amp;nbsp;schema: INFORMATION_SCHEMA.TABLES/INFORMATION_SCHEMA.COLUMNS, they should include the metadata fields that you wanted.&lt;/P&gt;
&lt;P&gt;Notice: you query records from these schema but currently you not have permission to view and query data from some sys table/views.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 07:19:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Microsoft-Fabric-Synapse-Warehouse-DDL-Script-Generation/m-p/4115134#M1477</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-23T07:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Fabric - Synapse Warehouse - DDL Script Generation</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Microsoft-Fabric-Synapse-Warehouse-DDL-Script-Generation/m-p/4124492#M1521</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Any update on this? Did the above suggestions help with your scenario?&amp;nbsp;if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.&lt;/P&gt;
&lt;P&gt;If these also don't help, please share more detailed information and description to help us clarify your scenario to test.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 07:49:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Microsoft-Fabric-Synapse-Warehouse-DDL-Script-Generation/m-p/4124492#M1521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-29T07:49:12Z</dc:date>
    </item>
  </channel>
</rss>

