<?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: View number of edits made in SDE.Default in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/view-number-of-edits-made-in-sde-default/m-p/560430#M31795</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;[This got detached from the thread stream by auto-save; pasted back in where it belongs]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rex gave you two SQL statements, though the second one has a typo ('Updated features' instead of 'Deleted features').&amp;nbsp; Working with the two of them you should be able to synthesize the distinctions between inserts and updates, and deletes and updates.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Apr 2017 13:56:05 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2017-04-20T13:56:05Z</dc:date>
    <item>
      <title>View number of edits made in SDE.Default</title>
      <link>https://community.esri.com/t5/data-management-questions/view-number-of-edits-made-in-sde-default/m-p/560421#M31786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking to see the number of edits(changes) made in the Default.SDE (users editing directly to the default) to catalog these numbers before I run my reconcile/post/compress script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this can be done with versions with the "version Changes Tool"&amp;nbsp;&lt;A href="https://community.esri.com/thread/191609"&gt;See edits made in a specific SDE Version before Reconcile/POST&lt;/A&gt;&amp;nbsp;however&amp;nbsp;this does not let me see anything with the SDE.Default.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would prefer using arcpy (not mandatory) &amp;nbsp;so I can add a few statements to my reconcile/post/compress script so it will print out the number of edits made (I need to catalog these numbers every week).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 13:03:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/view-number-of-edits-made-in-sde-default/m-p/560421#M31786</guid>
      <dc:creator>Lake_Worth_BeachAdmin</dc:creator>
      <dc:date>2017-04-12T13:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: View number of edits made in SDE.Default</title>
      <link>https://community.esri.com/t5/data-management-questions/view-number-of-edits-made-in-sde-default/m-p/560422#M31787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone have any ideas?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Apr 2017 12:05:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/view-number-of-edits-made-in-sde-default/m-p/560422#M31787</guid>
      <dc:creator>Lake_Worth_BeachAdmin</dc:creator>
      <dc:date>2017-04-14T12:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: View number of edits made in SDE.Default</title>
      <link>https://community.esri.com/t5/data-management-questions/view-number-of-edits-made-in-sde-default/m-p/560423#M31788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might be possible through python- but it should certainly be achievable through a DBMS client (for example SQL Server Management Studio or SQL Developer for Oracle) of a feature class by feature class level. Try the following workflow and query (this was done within a SQL Server geodatabase for testing).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In ArcCatalog create a new point, line or polygon feature class in your enterprise gdb. I created a test polygon FC named "Defaulttest"&lt;/LI&gt;&lt;LI&gt;Register the new FC as versioned (without the option to move edits to base)&lt;/LI&gt;&lt;LI&gt;Open SQL Server Management Studio and navigate to the SDE_table_registry table &amp;lt; Open the table and order by table_name column&lt;/LI&gt;&lt;LI&gt;Find the newly created Defaulttest&amp;nbsp;feature class and its corresponding registration_id value in the column. This will correspond with the delta (adds and deletes) tables for that feature class For me it was (182- update the below query with your values)&lt;/LI&gt;&lt;LI&gt;Then run the following query (ensuring it's against the geodatabase containing the edits):&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT 'Updated Features' as delta, COUNT(*) as cnt&lt;BR /&gt;FROM sde.A182&lt;BR /&gt;WHERE SDE_STATE_ID IN&lt;BR /&gt;(SELECT STATE_ID&lt;BR /&gt;FROM SDE.sde_STATES&lt;BR /&gt;WHERE LINEAGE_NAME IN&lt;BR /&gt;(SELECT LINEAGE_NAME&lt;BR /&gt;FROM SDE.sde_STATES&lt;BR /&gt;WHERE STATE_ID =&lt;BR /&gt;(SELECT STATE_ID FROM SDE.sde_VERSIONS WHERE NAME ='DEFAULT'&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Likewise, the following query should return how many deletes are currently stored in the associated delete table:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT 'Updated Features' as delta, COUNT(*) as cnt&lt;BR /&gt;FROM sde.d182&lt;BR /&gt;WHERE SDE_STATE_ID IN&lt;BR /&gt;(SELECT STATE_ID&lt;BR /&gt;FROM SDE.sde_STATES&lt;BR /&gt;WHERE LINEAGE_NAME IN&lt;BR /&gt;(SELECT LINEAGE_NAME&lt;BR /&gt;FROM SDE.sde_STATES&lt;BR /&gt;WHERE STATE_ID =&lt;BR /&gt;(SELECT STATE_ID FROM SDE.sde_VERSIONS WHERE NAME ='DEFAULT'&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There might be a way to obtain total amounts of edits (cumulatively)- but this is the only easy method I know in SQL to determine updated feature numbers on a feature class by feature class basis. I hope this is helpful!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Rex R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Apr 2017 23:33:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/view-number-of-edits-made-in-sde-default/m-p/560423#M31788</guid>
      <dc:creator>RexRobichaux2</dc:creator>
      <dc:date>2017-04-14T23:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: View number of edits made in SDE.Default</title>
      <link>https://community.esri.com/t5/data-management-questions/view-number-of-edits-made-in-sde-default/m-p/560424#M31789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am hoping I can figure this out with ArcPy &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 12:28:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/view-number-of-edits-made-in-sde-default/m-p/560424#M31789</guid>
      <dc:creator>Lake_Worth_BeachAdmin</dc:creator>
      <dc:date>2017-04-17T12:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: View number of edits made in SDE.Default</title>
      <link>https://community.esri.com/t5/data-management-questions/view-number-of-edits-made-in-sde-default/m-p/560425#M31790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any SQL query solution can be implemented in ArcPy through an arcpy.ArcSDESQLExecute cursor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 13:56:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/view-number-of-edits-made-in-sde-default/m-p/560425#M31790</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2017-04-17T13:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: View number of edits made in SDE.Default</title>
      <link>https://community.esri.com/t5/data-management-questions/view-number-of-edits-made-in-sde-default/m-p/560426#M31791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Vince, this is what I am looking for. However my knowledge of SQL is somewhat dim. Basically I would just use the ArcSDESQLEXECUTE cursor, point to my SDE path connection and then supply a SQL query for all table edits (changes, adds, deletes).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SQL part is going to be my issue. Thanks for info!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 15:47:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/view-number-of-edits-made-in-sde-default/m-p/560426#M31791</guid>
      <dc:creator>Lake_Worth_BeachAdmin</dc:creator>
      <dc:date>2017-04-19T15:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: View number of edits made in SDE.Default</title>
      <link>https://community.esri.com/t5/data-management-questions/view-number-of-edits-made-in-sde-default/m-p/560427#M31792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rex, I see this only queires &amp;nbsp;a specific feature class (table) is there an option for the entire Databse itself (SDE) or do I need to create a list of the tables and loop through them all?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 17:44:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/view-number-of-edits-made-in-sde-default/m-p/560427#M31792</guid>
      <dc:creator>Lake_Worth_BeachAdmin</dc:creator>
      <dc:date>2017-04-19T17:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: View number of edits made in SDE.Default</title>
      <link>https://community.esri.com/t5/data-management-questions/view-number-of-edits-made-in-sde-default/m-p/560428#M31793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure thing Joe. Unfortunately, I believe there is no way to quickly see all edits currently contained within or referenced by a version because when versioned edits are made in ArcGIS- they are made in and stored to corresponding feature class delta tables until the (database is compressed) and the queried through a series of versioning-related tables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you will have to create queries such as the two provided above for every feature class that undergoes versioned editing and therefore could potentially have versioned edits residing within their corresponding Adds and Deletes tables that are referenced by the default version. This can be found from &lt;SPAN style="background-color: #ffffff;"&gt;SDE_table_registry table by finding the registration_id value for each versioned, edited feature class.&lt;/SPAN&gt;&amp;nbsp;Perhaps Vince could confirm this but that is the only way I could foresee you obtaining all edits currently referenced by the Default version. Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 17:52:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/view-number-of-edits-made-in-sde-default/m-p/560428#M31793</guid>
      <dc:creator>RexRobichaux2</dc:creator>
      <dc:date>2017-04-19T17:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: View number of edits made in SDE.Default</title>
      <link>https://community.esri.com/t5/data-management-questions/view-number-of-edits-made-in-sde-default/m-p/560429#M31794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct. Individual edits associated with a state only exist in the An and Dn tables associated with each table.&amp;nbsp; To find all edits associated with all tables participating in that state would require iterating all versioned tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 13:53:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/view-number-of-edits-made-in-sde-default/m-p/560429#M31794</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2017-04-20T13:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: View number of edits made in SDE.Default</title>
      <link>https://community.esri.com/t5/data-management-questions/view-number-of-edits-made-in-sde-default/m-p/560430#M31795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;[This got detached from the thread stream by auto-save; pasted back in where it belongs]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rex gave you two SQL statements, though the second one has a typo ('Updated features' instead of 'Deleted features').&amp;nbsp; Working with the two of them you should be able to synthesize the distinctions between inserts and updates, and deletes and updates.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 13:56:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/view-number-of-edits-made-in-sde-default/m-p/560430#M31795</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2017-04-20T13:56:05Z</dc:date>
    </item>
  </channel>
</rss>

