<?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 any &amp;quot;Geodatabase in use&amp;quot; checking software out there? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/is-there-any-quot-geodatabase-in-use-quot-checking/m-p/87305#M5083</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for posting that Micah.&amp;nbsp; It has possibilities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like this could be handy not just as a standalone script tool but as a check process to build into modelbuilder (or a python equivalent) prior to it trying to process datasets so as to head off any conflicts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Aug 2015 18:51:20 GMT</pubDate>
    <dc:creator>ChrisDonohue__GISP</dc:creator>
    <dc:date>2015-08-06T18:51:20Z</dc:date>
    <item>
      <title>Is there any "Geodatabase in use" checking software out there?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-any-quot-geodatabase-in-use-quot-checking/m-p/87300#M5078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was wondering if there are any ESRI or third-party software/solutions out there that would could be used to automatically track whether a (non-enterprise) File or Personal Geodatabase was in use, with the idea of avoiding file corruption and lock issues when two or more people accidentally try to use the geodatabase at the same time.&amp;nbsp; While we do have an Enterprise Geodatabase (SDE) here, we still rely on many file and personal geodatabases outside SDE on the server for various tasks and multiple people need to access them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be optimal is a checking process that activates when a second person tries to access a geodatabase that is in use that would warn them that it is in use and who the current user was.&amp;nbsp; Something smoother than manually having to go to the geodatabase in Windows Explorer and looking for lock files (and then trying to match the computer name listed as part of the lock file name with a user).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="119937" alt="srlock file.jpg" class="image-1 jive-image" src="/legacyfs/online/119937_srlock file.jpg" style="width: 620px; height: 202px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any software/solution out there like this?&lt;/P&gt;&lt;P&gt;&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;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 16:46:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-any-quot-geodatabase-in-use-quot-checking/m-p/87300#M5078</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2015-07-30T16:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any "Geodatabase in use" checking software out there?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-any-quot-geodatabase-in-use-quot-checking/m-p/87301#M5079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, you Developers - I have a challenge for you.&amp;nbsp; Here's a product that many GIS people could use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To quote Monty Python:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;"Bring us a shrubbery!, er, I mean, a 'Geodatabase-Checking Program'!"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 15:16:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-any-quot-geodatabase-in-use-quot-checking/m-p/87301#M5079</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2015-08-06T15:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any "Geodatabase in use" checking software out there?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-any-quot-geodatabase-in-use-quot-checking/m-p/87302#M5080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure! How about:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def gdbInUse(input_file_geodatabase):
&amp;nbsp;&amp;nbsp;&amp;nbsp; """
&amp;nbsp;&amp;nbsp;&amp;nbsp; Determine whether any lock files exist in a file geodatabase
&amp;nbsp;&amp;nbsp;&amp;nbsp; Returns boolean output - True or False
&amp;nbsp;&amp;nbsp;&amp;nbsp; """
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.workspace = input_file_geodatabase
&amp;nbsp;&amp;nbsp;&amp;nbsp; lockList = arcpy.ListFiles("*lock*")
&amp;nbsp;&amp;nbsp;&amp;nbsp; if lockList:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return True
&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return False&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;? I'm thinking this could then be implemented in a script tool or extension using ArcObjects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update: for an individual dataset, arcpy has a handy tool called &lt;A href="http://resources.arcgis.com/EN/HELP/MAIN/10.2/index.html#//018v0000002m000000" rel="nofollow noopener noreferrer" target="_blank"&gt;Test Schema Lock&lt;/A&gt; that will return True if a schema lock can be acquired for a feature class, feature dataset, or table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Disclaimer: I'm not sure how this would work with personal geodatabase but I believe a similar method could be used to identify the record locking file that appears in the same folder as the .mdb when it is in use. I forget the extension for that type of file but have noticed it before when looking at a personal geodatabase in Windows explorer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Micah&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS You had me at shrubbery.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:20:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-any-quot-geodatabase-in-use-quot-checking/m-p/87302#M5080</guid>
      <dc:creator>MicahBabinski</dc:creator>
      <dc:date>2021-12-10T23:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any "Geodatabase in use" checking software out there?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-any-quot-geodatabase-in-use-quot-checking/m-p/87303#M5081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I'm not sure how this would work with personal geodatabase&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The solution is to stop using Personal Geodatabases! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 17:50:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-any-quot-geodatabase-in-use-quot-checking/m-p/87303#M5081</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2015-08-06T17:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any "Geodatabase in use" checking software out there?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-any-quot-geodatabase-in-use-quot-checking/m-p/87304#M5082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Zing!!! Love it. We just moved a whole Bureau off of them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 17:52:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-any-quot-geodatabase-in-use-quot-checking/m-p/87304#M5082</guid>
      <dc:creator>MicahBabinski</dc:creator>
      <dc:date>2015-08-06T17:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any "Geodatabase in use" checking software out there?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-any-quot-geodatabase-in-use-quot-checking/m-p/87305#M5083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for posting that Micah.&amp;nbsp; It has possibilities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like this could be handy not just as a standalone script tool but as a check process to build into modelbuilder (or a python equivalent) prior to it trying to process datasets so as to head off any conflicts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 18:51:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-any-quot-geodatabase-in-use-quot-checking/m-p/87305#M5083</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2015-08-06T18:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any "Geodatabase in use" checking software out there?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-any-quot-geodatabase-in-use-quot-checking/m-p/87306#M5084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it doesn't have to be on the entire geodatabase, you could try using &lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;A href="http://resources.arcgis.com/EN/HELP/MAIN/10.2/018v/018v0000002m000000.htm"&gt;TestSchemaLock()&lt;/A&gt;&lt;/SPAN&gt; on the feature class or table before attempting to do something with it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 22:17:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-any-quot-geodatabase-in-use-quot-checking/m-p/87306#M5084</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2015-08-06T22:17:06Z</dc:date>
    </item>
  </channel>
</rss>

