<?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 Re: Once a Database View is created in ArcGIS Pro, how can I go back in and see the SQL that was used? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/once-a-database-view-is-created-in-arcgis-pro-how/m-p/293835#M12775</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jake that's a query layer, output from Create Database View isn't showing the query for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Apr 2020 13:03:23 GMT</pubDate>
    <dc:creator>BruceHarold</dc:creator>
    <dc:date>2020-04-22T13:03:23Z</dc:date>
    <item>
      <title>Once a Database View is created in ArcGIS Pro, how can I go back in and see the SQL that was used?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/once-a-database-view-is-created-in-arcgis-pro-how/m-p/293832#M12772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've successfully created a database view using ArcGIS Pro, using arcpy.CreateDatabaseView_management().&amp;nbsp; Now, I would like to see the SQL that was used in the creation of that view.&amp;nbsp; I could do this in ArcCatalog by right clicking on the view, Properties, Definition tab.&amp;nbsp; Is there a way to do this in ArcGIS Pro?&amp;nbsp; I tried both right click, properties and arcpy.Describe().&amp;nbsp; Since I still have ArcCatalog I've resorted to using that to view the SQL used to create the view, but am hoping I've just missed something in ArcGIS Pro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using:&lt;/P&gt;&lt;P&gt;ArcGIS Pro 2.4&lt;/P&gt;&lt;P&gt;ArcCatalog 10.7.1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 10:01:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/once-a-database-view-is-created-in-arcgis-pro-how/m-p/293832#M12772</guid>
      <dc:creator>TobiSellekaerts</dc:creator>
      <dc:date>2020-04-22T10:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Once a Database View is created in ArcGIS Pro, how can I go back in and see the SQL that was used?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/once-a-database-view-is-created-in-arcgis-pro-how/m-p/293833#M12773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tobi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add the view to a map &amp;gt; right-click on the view &amp;gt; Properties &amp;gt; Source tab &amp;gt; click the pencil next to Query:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/489555_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should then see the SQL:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/489554_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 11:13:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/once-a-database-view-is-created-in-arcgis-pro-how/m-p/293833#M12773</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2020-04-22T11:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Once a Database View is created in ArcGIS Pro, how can I go back in and see the SQL that was used?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/once-a-database-view-is-created-in-arcgis-pro-how/m-p/293834#M12774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Fantastic - worked like a charm - many thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Upon deeper inspection, this actually isn't returning the correct information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ArcCatalog, I see something like this:&lt;/P&gt;&lt;P&gt;CREATE VIEW ViewName AS SELECT OBJECTID, ATT2 AS NewAtt2, ATT3 AS NewAtt3, LEFT(SOMELONGATTRIBUTE, 40) AS NewShortAtt FROM Database.User.OriginalTable&lt;/P&gt;&lt;P&gt;which is what I'm looking for - the SQL which created the original view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ArcGIS Pro, I see something like this:&lt;/P&gt;&lt;P&gt;SELECT OBJECTID, NEWATT2, NEWATT3, NEWSHORTATT from Database.User.ViewName&lt;/P&gt;&lt;P&gt;which isn't what I'm looking for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies for not examining more closely before marking your reply as correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 11:17:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/once-a-database-view-is-created-in-arcgis-pro-how/m-p/293834#M12774</guid>
      <dc:creator>TobiSellekaerts</dc:creator>
      <dc:date>2020-04-22T11:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Once a Database View is created in ArcGIS Pro, how can I go back in and see the SQL that was used?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/once-a-database-view-is-created-in-arcgis-pro-how/m-p/293835#M12775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jake that's a query layer, output from Create Database View isn't showing the query for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 13:03:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/once-a-database-view-is-created-in-arcgis-pro-how/m-p/293835#M12775</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2020-04-22T13:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Once a Database View is created in ArcGIS Pro, how can I go back in and see the SQL that was used?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/once-a-database-view-is-created-in-arcgis-pro-how/m-p/293836#M12776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bruce and Jake for your responses.&amp;nbsp; I've opened a case with Esri Support and heard back that "there does not appear to be a way to do this in ArcGIS Pro currently like there is in ArcMap."&amp;nbsp; Support is lodging an enhancement request and at their request I've submitted a new idea to GeoNet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/ideas/18400-arcgis-pro-should-allow-you-to-see-the-sql-used-to-create-a-database-view"&gt;ArcGIS Pro should allow you to see the SQL used to create a database view&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going to mark this question as answered, even though the answer is "You can't get there from here", and keep my fingers crossed for support in a future release.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2020 05:40:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/once-a-database-view-is-created-in-arcgis-pro-how/m-p/293836#M12776</guid>
      <dc:creator>TobiSellekaerts</dc:creator>
      <dc:date>2020-04-30T05:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Once a Database View is created in ArcGIS Pro, how can I go back in and see the SQL that was used?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/once-a-database-view-is-created-in-arcgis-pro-how/m-p/293837#M12777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, I believe this has caught the attention of the right people in development so thanks for bringing this up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2020 14:22:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/once-a-database-view-is-created-in-arcgis-pro-how/m-p/293837#M12777</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2020-04-30T14:22:31Z</dc:date>
    </item>
  </channel>
</rss>

