<?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: Disconnect Users from Specific Dataset within Enterprise GDB using Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/disconnect-users-from-specific-dataset-within/m-p/118656#M9365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't seen anything that will let you release specific locks like that. I think the best you can do is just disconenct the user from SDE. However, you should disconnect all users for a compress anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a different script that needs access to a particular table, you could use the Registration_ID from SDE.Table_Registry table to find any locks on it in the SDE.Table_Locks table. If there are locks listed for that table, you could take the SDE_ID of the lock(s) and use &lt;A href="http://resources.arcgis.com/en/help/main/10.1/018v/018v00000061000000.htm"&gt;DisconnectUser()&lt;/A&gt; to kick just that person (or persons) with the locks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get detailed connection information about a particular SDE_ID in the &lt;SPAN style="line-height: 1.5;"&gt;SDE.Process_Information table or with &lt;A href="http://resources.arcgis.com/en/help/main/10.1/018v/018v00000030000000.htm" title="http://resources.arcgis.com/en/help/main/10.1/018v/018v00000030000000.htm"&gt;ListUsers()&lt;/A&gt;. You can query all these SDE tables with arcpy using &lt;A href="http://resources.arcgis.com/en/help/main/10.1/018z/018z0000007z000000.htm" title="http://resources.arcgis.com/en/help/main/10.1/018z/018z0000007z000000.htm"&gt;ArcSDESQLExecute()&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2015 19:09:34 GMT</pubDate>
    <dc:creator>BlakeTerhune</dc:creator>
    <dc:date>2015-03-03T19:09:34Z</dc:date>
    <item>
      <title>Disconnect Users from Specific Dataset within Enterprise GDB using Python</title>
      <link>https://community.esri.com/t5/python-questions/disconnect-users-from-specific-dataset-within/m-p/118655#M9364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently use the arcpy.disconnectUsers() tool in python to successfully disconnect all users prior to performing my weekly compress.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering if anyone knows how to disconnect people from a specific Dataset, rather than the entire SDE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I have a py script that needs exclusive lock on the below feature class, so i want to disconnect users from this specific spot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-03-03_12-59-06_ArcCatalog - Database ConnectionsGISADMIN@SDE_Spatial@Smithy.sdeSDE_SPATIAL.GI.jpg" class="image-1 jive-image" src="/legacyfs/online/67789_2015-03-03_12-59-06_ArcCatalog - Database ConnectionsGISADMIN@SDE_Spatial@Smithy.sdeSDE_SPATIAL.GI.jpg" style="width: 620px; height: 469px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 02:02:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/disconnect-users-from-specific-dataset-within/m-p/118655#M9364</guid>
      <dc:creator>BenVan_Kesteren1</dc:creator>
      <dc:date>2015-03-03T02:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Disconnect Users from Specific Dataset within Enterprise GDB using Python</title>
      <link>https://community.esri.com/t5/python-questions/disconnect-users-from-specific-dataset-within/m-p/118656#M9365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't seen anything that will let you release specific locks like that. I think the best you can do is just disconenct the user from SDE. However, you should disconnect all users for a compress anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a different script that needs access to a particular table, you could use the Registration_ID from SDE.Table_Registry table to find any locks on it in the SDE.Table_Locks table. If there are locks listed for that table, you could take the SDE_ID of the lock(s) and use &lt;A href="http://resources.arcgis.com/en/help/main/10.1/018v/018v00000061000000.htm"&gt;DisconnectUser()&lt;/A&gt; to kick just that person (or persons) with the locks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get detailed connection information about a particular SDE_ID in the &lt;SPAN style="line-height: 1.5;"&gt;SDE.Process_Information table or with &lt;A href="http://resources.arcgis.com/en/help/main/10.1/018v/018v00000030000000.htm" title="http://resources.arcgis.com/en/help/main/10.1/018v/018v00000030000000.htm"&gt;ListUsers()&lt;/A&gt;. You can query all these SDE tables with arcpy using &lt;A href="http://resources.arcgis.com/en/help/main/10.1/018z/018z0000007z000000.htm" title="http://resources.arcgis.com/en/help/main/10.1/018z/018z0000007z000000.htm"&gt;ArcSDESQLExecute()&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 19:09:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/disconnect-users-from-specific-dataset-within/m-p/118656#M9365</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2015-03-03T19:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Disconnect Users from Specific Dataset within Enterprise GDB using Python</title>
      <link>https://community.esri.com/t5/python-questions/disconnect-users-from-specific-dataset-within/m-p/118657#M9366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Blake, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the info, I will look into the leads you have given me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do agree regarding the disconnection of all users for a compress, but this specific script I am writing is not for a compress, but to perform attribute updates of feature classes within a specific dataset, hence my rather odd request to only disconnect users from this dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your contribution, cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 21:41:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/disconnect-users-from-specific-dataset-within/m-p/118657#M9366</guid>
      <dc:creator>BenVan_Kesteren1</dc:creator>
      <dc:date>2015-03-05T21:41:28Z</dc:date>
    </item>
  </channel>
</rss>

