<?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 Kill SDE connections using a batch file: in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/kill-sde-connections-using-a-batch-file/m-p/470548#M26840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone have an example of how to kill specific SDE connections using a batch file?&amp;nbsp; Basically, I manually kill certain connections throughout the day to keep our server from maxing out during peak hours.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The connections are searched by username: &lt;/SPAN&gt;&lt;STRONG&gt;sdemon -o info -I users -i esri_sde2 | find "username"&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then killed:&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;sdemon -o kill -i esri_sde2 -N -p password -t &amp;lt;S-ID&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have used batch files for various things in the past, but this particular one is challenging.&amp;nbsp; I was reading about using delimiters to find particular parts of a string, etc. and my head almost exploded.&amp;nbsp; Does anyone have an example that I could use to get started?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 May 2012 13:46:20 GMT</pubDate>
    <dc:creator>JeremyRead</dc:creator>
    <dc:date>2012-05-10T13:46:20Z</dc:date>
    <item>
      <title>Kill SDE connections using a batch file:</title>
      <link>https://community.esri.com/t5/data-management-questions/kill-sde-connections-using-a-batch-file/m-p/470548#M26840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone have an example of how to kill specific SDE connections using a batch file?&amp;nbsp; Basically, I manually kill certain connections throughout the day to keep our server from maxing out during peak hours.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The connections are searched by username: &lt;/SPAN&gt;&lt;STRONG&gt;sdemon -o info -I users -i esri_sde2 | find "username"&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then killed:&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;sdemon -o kill -i esri_sde2 -N -p password -t &amp;lt;S-ID&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have used batch files for various things in the past, but this particular one is challenging.&amp;nbsp; I was reading about using delimiters to find particular parts of a string, etc. and my head almost exploded.&amp;nbsp; Does anyone have an example that I could use to get started?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 13:46:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/kill-sde-connections-using-a-batch-file/m-p/470548#M26840</guid>
      <dc:creator>JeremyRead</dc:creator>
      <dc:date>2012-05-10T13:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Kill SDE connections using a batch file:</title>
      <link>https://community.esri.com/t5/data-management-questions/kill-sde-connections-using-a-batch-file/m-p/470549#M26841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeremy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are running ArcSDE for SQL Server, you can try a python script I created.&amp;nbsp; You can download it from &lt;/SPAN&gt;&lt;A href="http://epro.maps.arcgis.com/home/item.html?id=c9f25136327346d497d59555396015fb"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; I have not extensively tested it, so please let me know of any feedback.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 19:53:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/kill-sde-connections-using-a-batch-file/m-p/470549#M26841</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2012-05-11T19:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Kill SDE connections using a batch file:</title>
      <link>https://community.esri.com/t5/data-management-questions/kill-sde-connections-using-a-batch-file/m-p/470550#M26842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jake,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much for the link!&amp;nbsp; We are running Oracle here, but I will see if I can modify the script to work for us.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 20:58:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/kill-sde-connections-using-a-batch-file/m-p/470550#M26842</guid>
      <dc:creator>JeremyRead</dc:creator>
      <dc:date>2012-05-11T20:58:50Z</dc:date>
    </item>
  </channel>
</rss>

