<?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: Is there an ESRI way to see if there is versioned data still in progress that needs compressing? in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807910#M3012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will need to hit the database directly to see if there are versioned tables/FCs.&lt;/P&gt;&lt;P&gt;From these tables:&amp;nbsp;&lt;SPAN class="" style="color: #4d4d4d; background-color: #fefefe;"&gt;STATES&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #fefefe;"&gt;STATE_LINEAGES&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #fefefe;"&gt;VERSIONS&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;, and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #fefefe;"&gt;MVTABLES_MODIFIED which one is the best to query to get a definitive answer if there are versioned FCs/tables in the sde db?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #fefefe;"&gt;I was counting how many records exist in the versions table, but there could be 1 record, but still there are versioned FCs. In this case state_id is &amp;gt; 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #fefefe;"&gt;There are also DBs with more than on record in the versions table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #fefefe;"&gt;So what is the best way to query the SDE db to find out?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Mar 2018 11:43:17 GMT</pubDate>
    <dc:creator>VaL</dc:creator>
    <dc:date>2018-03-08T11:43:17Z</dc:date>
    <item>
      <title>Is there an ESRI way to see if there is versioned data still in progress that needs compressing?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807908#M3010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have oracle 11 SDE database with some possible versioned feature classes.&lt;/P&gt;&lt;P&gt;Besides looking into the relevant tables involved in versioning is there any way to find out if a FC is versioned and might need compressing/finalizing.&lt;/P&gt;&lt;P&gt;Thanks for the input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 16:24:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807908#M3010</guid>
      <dc:creator>VaL</dc:creator>
      <dc:date>2018-03-02T16:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ESRI way to see if there is versioned data still in progress that needs compressing?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807909#M3011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can get a list of versioned feature classes using something like this from the Python window:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;arcpy.env.workspace = r"Database Connections\YourConnFile.sde"
for fc in arcpy.ListFeatureClasses():
&amp;nbsp;&amp;nbsp;&amp;nbsp; if arcpy.Describe(fc).isVersioned:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print(fc)
‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could do that for each distinct connection you've got, or put the SDE file paths in a list and iterate through them all together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: This will only work with standalone feature classes and would have to be extended to detect those inside of feature datasets...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:27:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807909#M3011</guid>
      <dc:creator>JamesMacKay3</dc:creator>
      <dc:date>2021-12-12T09:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ESRI way to see if there is versioned data still in progress that needs compressing?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807910#M3012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will need to hit the database directly to see if there are versioned tables/FCs.&lt;/P&gt;&lt;P&gt;From these tables:&amp;nbsp;&lt;SPAN class="" style="color: #4d4d4d; background-color: #fefefe;"&gt;STATES&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #fefefe;"&gt;STATE_LINEAGES&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #fefefe;"&gt;VERSIONS&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;, and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #fefefe;"&gt;MVTABLES_MODIFIED which one is the best to query to get a definitive answer if there are versioned FCs/tables in the sde db?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #fefefe;"&gt;I was counting how many records exist in the versions table, but there could be 1 record, but still there are versioned FCs. In this case state_id is &amp;gt; 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #fefefe;"&gt;There are also DBs with more than on record in the versions table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #fefefe;"&gt;So what is the best way to query the SDE db to find out?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 11:43:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807910#M3012</guid>
      <dc:creator>VaL</dc:creator>
      <dc:date>2018-03-08T11:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ESRI way to see if there is versioned data still in progress that needs compressing?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807911#M3013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking for this --&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/determining-which-data-is-versioned.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/determining-which-data-is-versioned.htm"&gt;Example: Determining which datasets are versioned in a geodatabase—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;??&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;You can query the definition column of the GDB_Items table (or GDB_Items_vw view in Oracle) to return a list of feature classes that have the versioned value set to true (or 1, depending on the database).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 11:51:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807911#M3013</guid>
      <dc:creator>Asrujit_SenGupta</dc:creator>
      <dc:date>2018-03-08T11:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ESRI way to see if there is versioned data still in progress that needs compressing?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807912#M3014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, strangely I can see one FC which I know is versioned but it is not in gdb_items_vw.&lt;/P&gt;&lt;P&gt;Also the sql in the example wont return any records but I know there are versioned FCs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 12:07:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807912#M3014</guid>
      <dc:creator>VaL</dc:creator>
      <dc:date>2018-03-08T12:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ESRI way to see if there is versioned data still in progress that needs compressing?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807913#M3015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was wondering, would state_id &amp;lt;&amp;gt; 0 in the states table indicate presence of versioned data?&lt;/P&gt;&lt;P&gt;I dont care which FCs are versioned, but if there are any or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 12:39:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807913#M3015</guid>
      <dc:creator>VaL</dc:creator>
      <dc:date>2018-03-08T12:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ESRI way to see if there is versioned data still in progress that needs compressing?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807914#M3016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If my understanding is correct, you just want to know whether the Geodatabase is fully compressed or it can be compressed further to reach State 0. If that is the case, simply check the Compress Log after performing a compress and check the End State.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot perform the compress for a single Feature Class anyway, as it happens at the Geodatabase level.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #fefefe;"&gt;You can see the results of each compression in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;ArcGIS for Desktop&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-sql-server/system-tables-sqlserver.htm#GUID-F342AA1A-F271-4324-9C76-173F30ED1D61" style="color: #007ac2; text-decoration: none;"&gt;SDE_compress_log&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;table.&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #fefefe;"&gt;You can also check the&amp;nbsp;&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-sql-server/system-tables-sqlserver.htm#GUID-9A7ED87C-3EE7-43CB-844B-348BB6960183" style="color: #007ac2; text-decoration: none;"&gt;SDE_versions&lt;/A&gt;&amp;nbsp;table to see if the state ID for the DEFAULT version has returned to zero.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If it has and there are no other outstanding versions, full compression has been achieved.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-sql-server/geodatabase-compress-operation.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-sql-server/geodatabase-compress-operation.htm"&gt;Geodatabase compression—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 17:45:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807914#M3016</guid>
      <dc:creator>Asrujit_SenGupta</dc:creator>
      <dc:date>2018-03-08T17:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ESRI way to see if there is versioned data still in progress that needs compressing?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807915#M3017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, my understanding of the question is that they are trying to find out which delta tables have records still in them, in other words, which feature class's delta tables still contain records that can be compressed to the base table.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure of a way to check the record count of delta tables in ArcCatalog, and the way I would do this would be to just query the database with SQL.&lt;/P&gt;&lt;P&gt;Depending on what your data looks like, you may get something like this by making a database view on the base table.&amp;nbsp; Since Esri applications will be the base table + the delta tables, making a view on the base table alone could give you an idea of the differences.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2018 23:24:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807915#M3017</guid>
      <dc:creator>TinaMorgan1</dc:creator>
      <dc:date>2018-03-12T23:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ESRI way to see if there is versioned data still in progress that needs compressing?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807916#M3018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me double check my understanding of versioning here.&lt;/P&gt;&lt;P&gt;I have 2 major cases&amp;nbsp;&lt;/P&gt;&lt;P&gt;Case 1: only one record in the sde.versions table with two subcases 1.1: state_id = 0 and 1.2 state_id &amp;gt; 0.&lt;/P&gt;&lt;P&gt;Case 2&amp;nbsp;more than&amp;nbsp;&lt;SPAN&gt;one records in the sde.versions table with state_id &amp;gt; 0 for each of them&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What I think this means is that one can have versioned data in the default&amp;nbsp;version (case 1) with numerous states ( = additions/deletions). Also there can be other versions children to default (most simple case) with numerous states.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is that correct?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What happens when the DB is compressed?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2018 14:35:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807916#M3018</guid>
      <dc:creator>VaL</dc:creator>
      <dc:date>2018-03-13T14:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ESRI way to see if there is versioned data still in progress that needs compressing?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807917#M3019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So being picky on semantics here, versions do not hold data.&amp;nbsp; So the default version doesn't 'hold versioned data'.&amp;nbsp; It is simply a view that combines edits made within that version.&amp;nbsp; The view uses the state_id which can be traced up the versions lineage (state_lineages) all the way up to the base table.&amp;nbsp; Edits (record updates, inserts and deletes) are what hold states, and those edits must be made within a version so the version state_id only represents that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you compress a geodatabase those edits (with state ids) are pushed from the delta tables into the base table.&amp;nbsp; That's where the bulk of the action happens.&amp;nbsp; The other tables (versions, lineages, etc) are for used to implement Esri's multi-user geodatabase functionality.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(first what kind of database are you using?&amp;nbsp; SQL Server, oracle, ??)&amp;nbsp; You can go into your database tables and you should see some tables like a## and d##.&amp;nbsp; These are your delta tables.&amp;nbsp; The number corresponds to the registration_id of the table_registry table.&amp;nbsp; That's where your edits are in a versioned database.&amp;nbsp; When you compress the geodatabase those a and d tables are truncated, and the edits are pushed into the base table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is an old article, but a good one...&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://edndoc.esri.com/arcobjects/9.2/NET_Server_Doc/manager/geodatabase/geodatabase_dat-609646256/versione805744640.htm" title="http://edndoc.esri.com/arcobjects/9.2/NET_Server_Doc/manager/geodatabase/geodatabase_dat-609646256/versione805744640.htm"&gt;Versioned tables in a geodatabase in Oracle&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2018 16:00:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807917#M3019</guid>
      <dc:creator>TinaMorgan1</dc:creator>
      <dc:date>2018-03-13T16:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ESRI way to see if there is versioned data still in progress that needs compressing?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807918#M3020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. We use oracle.&lt;/P&gt;&lt;P&gt;I also got this idea, may be slightly wrong semantics.&lt;/P&gt;&lt;P&gt;But what would one record in the versions table with state_id &amp;gt; 0 mean?&lt;/P&gt;&lt;P&gt;Some feature classes are registered as versioned but not with a child version and there are edit in the A### and D### tables. Is that correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2018 16:22:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807918#M3020</guid>
      <dc:creator>VaL</dc:creator>
      <dc:date>2018-03-13T16:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ESRI way to see if there is versioned data still in progress that needs compressing?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807919#M3021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if there is a record in the versions table that has a state_id of 0 then that means that version was created off of its parent when it too was at state zero, AND that no one has ever connected to that version and made edits within it.&amp;nbsp; Basically you can delete it, as it has never been used.&lt;/P&gt;&lt;P&gt;Feature classes can be registered as versioned and that has no effect on how many versions you actually have.&amp;nbsp; You may register every feature class in your geodatabase as versioned, but never create any transactional versions to edit within (other than DEFAULT which will always be there).&lt;/P&gt;&lt;P&gt;If there are edits in the a and d tables then that data has not been compressed.&amp;nbsp; Period.&amp;nbsp; If you ran a geodatabase compress and STILL see records in the a and d tables, then that means those edits are still being referenced by something, for example an open edit session or a version that has not been reconciled and posted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2018 16:36:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807919#M3021</guid>
      <dc:creator>TinaMorgan1</dc:creator>
      <dc:date>2018-03-13T16:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ESRI way to see if there is versioned data still in progress that needs compressing?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807920#M3022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This isn't an ArcGIS/Esri way but take a look at this tech article describing a SQL script that.. "&lt;SPAN style="color: #595959; background-color: #ffffff; font-weight: 300;"&gt;&lt;EM&gt;reports information about a versioned geodatabase in Oracle. The output lists the number of versions, the number of versions blocking the DEFAULT version from being compressed to state 0 and the owner.names of the first 5 blocking versions, the number of states, the number of entries in the state_lineages table, and the number of rows in the versioned table and delta tables.&lt;/EM&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #ffffff; font-weight: 300;"&gt;As has been mentioned in the other comments, to see what versioned feature classes have not had their edits posted and compressed to the base table is to look at the delta tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #ffffff; font-weight: 300;"&gt;&lt;A class="link-titled" href="https://support.esri.com/en/technical-article/000010358" title="https://support.esri.com/en/technical-article/000010358"&gt;How To: Report geodatabase versioning statistics in an Oracle geodatabase&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 02:47:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807920#M3022</guid>
      <dc:creator>KenGalliher1</dc:creator>
      <dc:date>2018-03-15T02:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ESRI way to see if there is versioned data still in progress that needs compressing?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807921#M3023</link>
      <description>&lt;P&gt;Also, try this query to check the count of unposted states on all versioned feature classes:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT tr.table_name AS table_name ,
       s.owner AS state_owner,
       count(*) AS total_unposted_states
FROM sde.table_registry tr
    INNER JOIN sde.mvtables_modified mv
    ON tr.registration_id = mv.registration_id
    INNER JOIN sde.states s
    ON mv.state_id = s.state_id
GROUP BY tr.table_name, s.owner;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 05 May 2021 18:53:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/807921#M3023</guid>
      <dc:creator>KenGalliher1</dc:creator>
      <dc:date>2021-05-05T18:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an ESRI way to see if there is versioned data still in progress that needs compressing?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/1044475#M7104</link>
      <description>&lt;P&gt;Thank you Ken, that is brilliant. Had to just slightly adjust for our SQL server as:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;SELECT tr.table_name AS table_name,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;       s.owner AS state_owner,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;       count(*) AS total_unposted_states&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;FROM sde.SDE_table_registry tr&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    INNER JOIN sde.SDE_mvtables_modified mv&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    ON tr.registration_id = mv.registration_id&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    INNER JOIN sde.SDE_states s&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    ON mv.state_id = s.state_id&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;GROUP BY tr.table_name, s.owner; &lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 00:10:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/is-there-an-esri-way-to-see-if-there-is-versioned/m-p/1044475#M7104</guid>
      <dc:creator>MiroUmlauf</dc:creator>
      <dc:date>2021-04-07T00:10:25Z</dc:date>
    </item>
  </channel>
</rss>

