<?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 Last used/accessed datetime for feature class/table in Geodatabase in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/last-used-accessed-datetime-for-feature-class/m-p/63288#M3670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi GeoNet'ers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am performing an audit of our enterprise database as part of a wider GIS Data Strategy. I am trying to ascertain a last accessed/used date for all the feature classes stored within the Geodatabase. The plan is to archive or delete feature classes that aren't been used then create or update metadata on the rest. If there are no options in the geodatabase, it is built on SQL Server 2012 which may have some facility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Apr 2019 13:51:26 GMT</pubDate>
    <dc:creator>DavidMcDermott1</dc:creator>
    <dc:date>2019-04-02T13:51:26Z</dc:date>
    <item>
      <title>Last used/accessed datetime for feature class/table in Geodatabase</title>
      <link>https://community.esri.com/t5/data-management-questions/last-used-accessed-datetime-for-feature-class/m-p/63288#M3670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi GeoNet'ers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am performing an audit of our enterprise database as part of a wider GIS Data Strategy. I am trying to ascertain a last accessed/used date for all the feature classes stored within the Geodatabase. The plan is to archive or delete feature classes that aren't been used then create or update metadata on the rest. If there are no options in the geodatabase, it is built on SQL Server 2012 which may have some facility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2019 13:51:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/last-used-accessed-datetime-for-feature-class/m-p/63288#M3670</guid>
      <dc:creator>DavidMcDermott1</dc:creator>
      <dc:date>2019-04-02T13:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Last used/accessed datetime for feature class/table in Geodatabase</title>
      <link>https://community.esri.com/t5/data-management-questions/last-used-accessed-datetime-for-feature-class/m-p/63289#M3671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you ever arrive at a solution? Querying the OS didn't seem promising because a flag to keep track of Date Accessed is off by default, so in the file system I was looking at the Date Accessed is always the same as the Date Created.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only other option I have encountered so far is described here (although I haven't tried it yet)&amp;nbsp;&lt;A class="link-titled" href="https://gis.stackexchange.com/questions/326219/how-to-get-the-modified-date-for-a-featureclass-in-a-file-geodatabase-via-arcp" title="https://gis.stackexchange.com/questions/326219/how-to-get-the-modified-date-for-a-featureclass-in-a-file-geodatabase-via-arcp"&gt;arcgis 10.2 - How to get the "modified" date for a FeatureClass in a file geodatabase via ArcPy? - Geographic Informatio…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2020 20:01:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/last-used-accessed-datetime-for-feature-class/m-p/63289#M3671</guid>
      <dc:creator>SCVTAGIS</dc:creator>
      <dc:date>2020-08-11T20:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Last used/accessed datetime for feature class/table in Geodatabase</title>
      <link>https://community.esri.com/t5/data-management-questions/last-used-accessed-datetime-for-feature-class/m-p/63290#M3672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm pretty sure you can do this with&lt;A href="https://www.esri.com/en-us/arcgis/products/arcgis-monitor/overview"&gt; ArcGIS Monitor&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2020 21:08:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/last-used-accessed-datetime-for-feature-class/m-p/63290#M3672</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-08-11T21:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Last used/accessed datetime for feature class/table in Geodatabase</title>
      <link>https://community.esri.com/t5/data-management-questions/last-used-accessed-datetime-for-feature-class/m-p/63291#M3673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your responses.&amp;nbsp;The best solution I found was&amp;nbsp;to query the index usage stats. I have pasted the SQL below. The main downside with this method is the value are reset if you reboot the server. Hope this helps.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;select&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;schema_name&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; 
       table_name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; 
	   PS&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;row_count &lt;SPAN class="keyword token"&gt;AS&lt;/SPAN&gt; TotalRowCount&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
       &lt;SPAN class="token function"&gt;max&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;last_access&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; last_access 
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;select&lt;/SPAN&gt; schema_name&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;schema_id&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; schema_name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
           name &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; table_name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
           &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;select&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;max&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;last_access&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; 
            &lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;values&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;last_user_seek&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                        &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;last_user_scan&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                        &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;last_user_lookup&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; 
                        &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;last_user_update&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; tmp&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;last_access&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; last_access
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; sys&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dm_db_index_usage_stats sta
&lt;SPAN class="keyword token"&gt;join&lt;/SPAN&gt; sys&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;objects obj
     &lt;SPAN class="keyword token"&gt;on&lt;/SPAN&gt; obj&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;object_id &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; sta&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;object_id
     &lt;SPAN class="operator token"&gt;and&lt;/SPAN&gt; obj&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;type&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'U'&lt;/SPAN&gt;
     &lt;SPAN class="operator token"&gt;and&lt;/SPAN&gt; sta&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;database_id &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; DB_ID&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;usage&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;JOIN&lt;/SPAN&gt; sys&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dm_db_partition_stats PS &lt;SPAN class="keyword token"&gt;ON&lt;/SPAN&gt; OBJECT_NAME&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;PS&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;object_id&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; table_name
&lt;SPAN class="keyword token"&gt;where&lt;/SPAN&gt; schema_name &lt;SPAN class="operator token"&gt;NOT&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;LIKE&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'sde'&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;group&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;by&lt;/SPAN&gt; schema_name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; 
         table_name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
		 PS&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;row_count

&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;/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;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;/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;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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:25:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/last-used-accessed-datetime-for-feature-class/m-p/63291#M3673</guid>
      <dc:creator>DavidMcDermott1</dc:creator>
      <dc:date>2021-12-10T22:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Last used/accessed datetime for feature class/table in Geodatabase</title>
      <link>https://community.esri.com/t5/data-management-questions/last-used-accessed-datetime-for-feature-class/m-p/1586215#M45571</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;I am currently undertaking a similar audit on one of our SDE databases. I need to know when each feature class/table was last viewed/accessed to determine if I can delete it or not. Would you please mind explaining to me what each field means when I run your sql query as I don't understand, particularly the last_access field, I'm not sure what it's telling me, I was expecting to see lots of dates potentially dating back months/years (if the server had not been rebooted as you mentioned) but I'm only seeing the last couple of days dates. I'm unsure what I can delete and what I can't. Sorry if this is a silly question.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 03:02:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/last-used-accessed-datetime-for-feature-class/m-p/1586215#M45571</guid>
      <dc:creator>AdminNCCMA</dc:creator>
      <dc:date>2025-02-18T03:02:11Z</dc:date>
    </item>
  </channel>
</rss>

