<?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 Losing server connection on spatial query. in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/losing-server-connection-on-spatial-query/m-p/447654#M17311</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for looking at my question, this is the error I am getting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Failure to access the dbms server [08S01:[Microsoft][sql server native client 11.0]TCP Provider: An existing connection was forcibly&lt;/P&gt;&lt;P&gt;closed by the remote host.][Feature Class Name]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Visual Studio 2012.&amp;nbsp; VB.Net.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here is my scenario, I have a layer of polygons that cover a certain area and I want to retrieve the streets that are contained within each polygon, those are wrote to a selection set. Then those streets are ran in a spatial query agianst municipal boundary polygons, all streets that are contained within the polygons are wrote to a new dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have stripped down the code to where it is only writing to one field to make it easier to follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once this process is started it just gets slower and slower until I get the above error. If I go to Windows task manager, then Resource monitor, the job is shown as not responding most of the time. It does this consistenltly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am releasing features, featurecursors, trying GC.collect, nothing seems to make a difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I break up the process and run 10 polygons, restart run another 10 and so on it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a programmer, I have no knowledge of/interactions with the servers the data is on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really want to figure this out, not just plug in a solution and go on, but understand and reslove the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if there are any issues with the attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Mar 2015 16:12:21 GMT</pubDate>
    <dc:creator>DaleShearer</dc:creator>
    <dc:date>2015-03-17T16:12:21Z</dc:date>
    <item>
      <title>Losing server connection on spatial query.</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/losing-server-connection-on-spatial-query/m-p/447654#M17311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for looking at my question, this is the error I am getting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Failure to access the dbms server [08S01:[Microsoft][sql server native client 11.0]TCP Provider: An existing connection was forcibly&lt;/P&gt;&lt;P&gt;closed by the remote host.][Feature Class Name]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Visual Studio 2012.&amp;nbsp; VB.Net.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here is my scenario, I have a layer of polygons that cover a certain area and I want to retrieve the streets that are contained within each polygon, those are wrote to a selection set. Then those streets are ran in a spatial query agianst municipal boundary polygons, all streets that are contained within the polygons are wrote to a new dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have stripped down the code to where it is only writing to one field to make it easier to follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once this process is started it just gets slower and slower until I get the above error. If I go to Windows task manager, then Resource monitor, the job is shown as not responding most of the time. It does this consistenltly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am releasing features, featurecursors, trying GC.collect, nothing seems to make a difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I break up the process and run 10 polygons, restart run another 10 and so on it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a programmer, I have no knowledge of/interactions with the servers the data is on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really want to figure this out, not just plug in a solution and go on, but understand and reslove the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if there are any issues with the attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 16:12:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/losing-server-connection-on-spatial-query/m-p/447654#M17311</guid>
      <dc:creator>DaleShearer</dc:creator>
      <dc:date>2015-03-17T16:12:21Z</dc:date>
    </item>
  </channel>
</rss>

