<?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>idea Display database view SQL definition in Catalog properties, even when view is broken in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/display-database-view-sql-definition-in-catalog/idi-p/1295508</link>
    <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 3.1.2; file geodatabase:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I have a database view called TEST_TABLE_VW on a file geodatabase table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1685735483457.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/72297iC13741707A957056/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1685735483457.png" alt="Bud_0-1685735483457.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Scenario:&lt;/P&gt;&lt;P&gt;The database view becomes invalid. For example, if I rename the underlying table from TEST_TABLE to TEST_TABLE_2, then that will break the view.&lt;/P&gt;&lt;P&gt;Now, I'm unable to see the view's SQL definition in the Catalog properties:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1685735667765.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/72298i6EEA3DF57302F49C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_1-1685735667765.png" alt="Bud_1-1685735667765.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In this example case, it would be simple enough to revert the table name back to TEST_TABLE. Then the view would work again and I could see the SQL.&lt;/P&gt;&lt;P&gt;But in real life cases, it's often not so easy to change a table so that the view is valid again -- in order to retrieve the view's SQL query.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could that behviour be changed so that we can still see the SQL of a broken view -- similar to how it works in SQL clients when dealing with other types of databases? So that we can copy the SQL, fix the SQL query, and create a new valid view.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Related:&amp;nbsp;&lt;A href="https://community.esri.com/t5/data-management-ideas/database-views-edit-sql-definition-in-catalog/idi-p/1226641" target="_self"&gt;Database Views: Edit SQL definition in Catalog&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jun 2023 20:07:20 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2023-06-02T20:07:20Z</dc:date>
    <item>
      <title>Display database view SQL definition in Catalog properties, even when view is broken</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/display-database-view-sql-definition-in-catalog/idi-p/1295508</link>
      <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 3.1.2; file geodatabase:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I have a database view called TEST_TABLE_VW on a file geodatabase table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1685735483457.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/72297iC13741707A957056/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1685735483457.png" alt="Bud_0-1685735483457.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Scenario:&lt;/P&gt;&lt;P&gt;The database view becomes invalid. For example, if I rename the underlying table from TEST_TABLE to TEST_TABLE_2, then that will break the view.&lt;/P&gt;&lt;P&gt;Now, I'm unable to see the view's SQL definition in the Catalog properties:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1685735667765.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/72298i6EEA3DF57302F49C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_1-1685735667765.png" alt="Bud_1-1685735667765.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In this example case, it would be simple enough to revert the table name back to TEST_TABLE. Then the view would work again and I could see the SQL.&lt;/P&gt;&lt;P&gt;But in real life cases, it's often not so easy to change a table so that the view is valid again -- in order to retrieve the view's SQL query.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could that behviour be changed so that we can still see the SQL of a broken view -- similar to how it works in SQL clients when dealing with other types of databases? So that we can copy the SQL, fix the SQL query, and create a new valid view.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Related:&amp;nbsp;&lt;A href="https://community.esri.com/t5/data-management-ideas/database-views-edit-sql-definition-in-catalog/idi-p/1226641" target="_self"&gt;Database Views: Edit SQL definition in Catalog&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 20:07:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/display-database-view-sql-definition-in-catalog/idi-p/1295508</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-06-02T20:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Display database view SQL definition in Catalog properties, even when view is broken</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/display-database-view-sql-definition-in-catalog/idc-p/1298180#M25373</link>
      <description>&lt;P&gt;Esri Case 03357247 - FGDB database view definition not displayed when view is broken&lt;/P&gt;&lt;P&gt;ENH-000159017 - Keep the SQL expression used to create a file geodatabase Database View displayed under Definition when the view is broken by the deletion or renaming of the table or feature class used to construct the view and allow the expression to be copied even if it is greyed out.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 16:58:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/display-database-view-sql-definition-in-catalog/idc-p/1298180#M25373</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-06-12T16:58:55Z</dc:date>
    </item>
  </channel>
</rss>

