<?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: Python or SQL for 'Version Changes'? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/python-or-sql-for-version-changes/m-p/1355819#M44831</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/11168"&gt;@FredSpataro&lt;/a&gt;&amp;nbsp;- Thanks for creating the ArcGIS Idea, I have added a few comments to the idea to bring more clarification, I hope it helps.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Dec 2023 17:58:36 GMT</pubDate>
    <dc:creator>MarceloMarques</dc:creator>
    <dc:date>2023-12-01T17:58:36Z</dc:date>
    <item>
      <title>Python or SQL for 'Version Changes'?</title>
      <link>https://community.esri.com/t5/data-management-questions/python-or-sql-for-version-changes/m-p/1355447#M44824</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's an ArcPro tool called 'Version Changes' on the Versioning ribbon (see picture below).&amp;nbsp; Is there a python/gp tool or SQL template to achieve the same thing?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need to implement some automated QA/QC and auditing tasks.&amp;nbsp; It would be 'waaaayyyy' better if we could grab this info without asking the user to press the button.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredSpataro_0-1701384984312.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/87655iFE2BFDB41D8784A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredSpataro_0-1701384984312.png" alt="FredSpataro_0-1701384984312.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 22:58:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/python-or-sql-for-version-changes/m-p/1355447#M44824</guid>
      <dc:creator>FredSpataro</dc:creator>
      <dc:date>2023-11-30T22:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Python or SQL for 'Version Changes'?</title>
      <link>https://community.esri.com/t5/data-management-questions/python-or-sql-for-version-changes/m-p/1355452#M44825</link>
      <description>&lt;P&gt;arcpy can access all arctoolbox tools such as those in&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/an-overview-of-the-versions-toolset.htm" target="_blank"&gt;An overview of the Versions toolset—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or via arcpy directly if this is the versions you are referring to&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/data-access/listversions.htm" target="_self"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/data-access/listversions.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/data-access/version.htm" target="_blank"&gt;Version—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 23:05:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/python-or-sql-for-version-changes/m-p/1355452#M44825</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-11-30T23:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Python or SQL for 'Version Changes'?</title>
      <link>https://community.esri.com/t5/data-management-questions/python-or-sql-for-version-changes/m-p/1355468#M44826</link>
      <description>&lt;P&gt;&lt;BR /&gt;ArcGIS Pro "&lt;STRONG&gt;Version Changes"&lt;/STRONG&gt; is not exposed as a geoprocessing tool therefore it is also not exposed in arcpy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/an-overview-of-the-versions-toolset.htm" target="_blank" rel="nofollow noopener noreferrer"&gt;An overview of the Versions toolset—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/alphabetical-list-of-arcpy-functions.htm" target="_blank"&gt;An overview of ArcPy functions—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-------------------------------&lt;/P&gt;&lt;P&gt;But you can use &lt;STRONG&gt;ArcGIS Pro SDK for .NET&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/" target="_blank" rel="noopener"&gt;ArcGIS Pro SDK | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic7008.html" target="_blank" rel="noopener"&gt;FeatureClass Class—ArcGIS Pro&lt;/A&gt;&amp;nbsp; - &lt;STRONG&gt;Featureclass.Differences&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-questions/version-differences/td-p/835837" target="_blank" rel="noopener"&gt;Solved: Version Differences - Esri Community&lt;/A&gt;&amp;nbsp;- this link has a code example.&lt;/P&gt;&lt;P&gt;-------------------------------&lt;/P&gt;&lt;P&gt;You could also use FME Workbench.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.safe.com/s/article/tutorial-extracting-differences-from-an-arcsde-geo" target="_blank" rel="noopener"&gt;Extracting Differences from an ArcSDE Geodatabase (safe.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am not sure if this is exposed in the ArcGIS Pro Data Interoperability Extension, but if it is then you could use an ArcGIS Pro Model Builder to call the ArcGIS Pro Data Interoperability Transformer.&lt;/P&gt;&lt;P&gt;-------------------------------&lt;/P&gt;&lt;P&gt;There in no way to see the version changes using SQL.&lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/edit-versioned-data-using-sql-sqlserver.htm" target="_blank" rel="noopener"&gt;Edit versioned data in SQL Server using SQL—ArcMap | Documentation (arcgis.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-------------------------------&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 23:45:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/python-or-sql-for-version-changes/m-p/1355468#M44826</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2023-11-30T23:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Python or SQL for 'Version Changes'?</title>
      <link>https://community.esri.com/t5/data-management-questions/python-or-sql-for-version-changes/m-p/1355475#M44827</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7880"&gt;@MarceloMarques&lt;/a&gt;&amp;nbsp;thanks... i knew it wasn't in the version toolbox (hoping it might be somewhere else hidden...)&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll look into the SDK, i have a vague recollection of doing something way back with the ArcObejcts SDK.&amp;nbsp; I profiled the database when the button was run, hoping for some SQL insight but it's really complicated.&amp;nbsp; We've got a start with some SQL comparing on the multiversion views ... just seems like that button would be useful from arcpy or sql...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 23:53:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/python-or-sql-for-version-changes/m-p/1355475#M44827</guid>
      <dc:creator>FredSpataro</dc:creator>
      <dc:date>2023-11-30T23:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Python or SQL for 'Version Changes'?</title>
      <link>https://community.esri.com/t5/data-management-questions/python-or-sql-for-version-changes/m-p/1355666#M44828</link>
      <description>&lt;P&gt;Might be worthwhile to submit an idea/enhancement request?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 16:45:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/python-or-sql-for-version-changes/m-p/1355666#M44828</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-12-01T16:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Python or SQL for 'Version Changes'?</title>
      <link>https://community.esri.com/t5/data-management-questions/python-or-sql-for-version-changes/m-p/1355769#M44829</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/11168"&gt;@FredSpataro&lt;/a&gt;&amp;nbsp;- I agree that&amp;nbsp;&lt;SPAN&gt;ArcGIS Pro "&lt;/SPAN&gt;&lt;STRONG&gt;Version Changes" &lt;/STRONG&gt;needs to be available as an &lt;STRONG&gt;arctoolbox geoprocessing tool&lt;/STRONG&gt; and in &lt;STRONG&gt;arcpy &lt;/STRONG&gt;for users, if you want to submit an enhancement request then please open an Esri Technical Support Case, I also suggest creating an ArcGIS Idea about the enhancement so other users can vote on the idea, that helps build the case for the enhancement request to get implemented in a future release of ArcGIS Pro.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 16:44:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/python-or-sql-for-version-changes/m-p/1355769#M44829</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2023-12-01T16:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Python or SQL for 'Version Changes'?</title>
      <link>https://community.esri.com/t5/data-management-questions/python-or-sql-for-version-changes/m-p/1355813#M44830</link>
      <description>&lt;P&gt;Done:&amp;nbsp;&lt;A href="https://community.esri.com/t5/data-management-ideas/add-version-changes-to-the-versions-toolset/idi-p/1355811/jump-to/first-unread-message" target="_blank"&gt;https://community.esri.com/t5/data-management-ideas/add-version-changes-to-the-versions-toolset/idi-p/1355811/jump-to/first-unread-message&lt;/A&gt;&lt;/P&gt;&lt;P&gt;thanks again for the replies.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 17:38:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/python-or-sql-for-version-changes/m-p/1355813#M44830</guid>
      <dc:creator>FredSpataro</dc:creator>
      <dc:date>2023-12-01T17:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Python or SQL for 'Version Changes'?</title>
      <link>https://community.esri.com/t5/data-management-questions/python-or-sql-for-version-changes/m-p/1355819#M44831</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/11168"&gt;@FredSpataro&lt;/a&gt;&amp;nbsp;- Thanks for creating the ArcGIS Idea, I have added a few comments to the idea to bring more clarification, I hope it helps.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 17:58:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/python-or-sql-for-version-changes/m-p/1355819#M44831</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2023-12-01T17:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Python or SQL for 'Version Changes'?</title>
      <link>https://community.esri.com/t5/data-management-questions/python-or-sql-for-version-changes/m-p/1355828#M44832</link>
      <description>&lt;OL&gt;&lt;LI&gt;Could you query the ADDS and DELETES tables, in conjunction with the default version, using SQL to get the information you need?&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;When clicking that button in the UI, what SQL query does Pro send to the database? Can you look at the SQL logs in the Diagnostic monitor? Or get your DBA to do a SQL trace?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Can you show us more examples of what you want? &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Could you mock up something in Excel to show us what the data/result would look like?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 01 Dec 2023 18:17:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/python-or-sql-for-version-changes/m-p/1355828#M44832</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-12-01T18:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Python or SQL for 'Version Changes'?</title>
      <link>https://community.esri.com/t5/data-management-questions/python-or-sql-for-version-changes/m-p/1355842#M44833</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351335"&gt;@Bud&lt;/a&gt;&amp;nbsp;- The SQL Queries in a traditional versioned and branch versioned geodatabase are very complex SQL Queries, that includes the state lineage number, among many other parameters and values.&lt;BR /&gt;&lt;BR /&gt;If you run a database trace to capture the SQL Queries you will see that the logic is not easy to reproduce, hence making it impossible to manually create SQL Queries to fetch the Geodatabase "Version Changes".&lt;BR /&gt;&lt;BR /&gt;I agree that the ability to use SQL Queries to fetch the Geodatabase "Version Changes" would be a nice enhancement.&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/11168"&gt;@FredSpataro&lt;/a&gt;&amp;nbsp; wrote above&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"I profiled the database when the button was run, hoping for some SQL insight but it's really complicated.&amp;nbsp; We've got a start with some SQL comparing on the multiversion views ... just seems like that button would be useful from arcpy or sql... "&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 18:41:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/python-or-sql-for-version-changes/m-p/1355842#M44833</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2023-12-01T18:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Python or SQL for 'Version Changes'?</title>
      <link>https://community.esri.com/t5/data-management-questions/python-or-sql-for-version-changes/m-p/1355894#M44834</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351335"&gt;@Bud&lt;/a&gt;&amp;nbsp;yeah, the SQL profile is crazy lots of dynamic sql text and cursor fetches... the As&amp;amp;Ds look simple enough when you see a few edits on a version or two but the live data makes me think I'll miss something unless I know it's perfectly crafted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current strategy is:&lt;/P&gt;&lt;P&gt;SQL sproc:&lt;/P&gt;&lt;P&gt;cursor over version names&lt;/P&gt;&lt;P&gt;set_current_version&lt;/P&gt;&lt;P&gt;select OIDs to temp (use editor tracking columns if it helps)&lt;/P&gt;&lt;P&gt;merge against base temp OIDs&amp;nbsp;&lt;/P&gt;&lt;P&gt;do some tweaks for special cases&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;we'll see&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 19:32:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/python-or-sql-for-version-changes/m-p/1355894#M44834</guid>
      <dc:creator>FredSpataro</dc:creator>
      <dc:date>2023-12-01T19:32:06Z</dc:date>
    </item>
  </channel>
</rss>

