<?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 ArcSDESQLExecute problems in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/arcsdesqlexecute-problems/m-p/110698#M3784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm looking for anyone who has had experience with arcpy.ArcSDESQLExecute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use Python in ArcGIS 10.1 to return a selected set from an ArcSDE/SQL Server table and write it out to a new table in a file geodatabase. Right now I'm just doing some basic testing to see if I can get it to work correctly because at 9.3.1 there was a serious bug related to the handling of NULL values. That issue appears to be fixed, but now I'm having a different problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The new issue I'm having with ArcGIS 10 version is that the returned object (list of lists) causes a Visual C++ error when the object is deleted. Doesn't matter when I delete the list object or if I let&amp;nbsp; Python clean up after executing the script. It will throw that error and I have to kill the application. I've tried running from ArcCatalog and ArcMap as an ArcTool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There seems to be some relationship with the number of records returned. If I only do a few hundred, the script will usually exit successfully. I've tested with several hundred thousand records in different tables and don't see the client running out of memory and I can iterate through the list without any problems and write everything to a new table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried pausing the script for a few seconds at different points, but haven't seen any difference in performance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My test script is attached, any help would be greatly appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Aug 2011 15:30:10 GMT</pubDate>
    <dc:creator>StevePeaslee</dc:creator>
    <dc:date>2011-08-23T15:30:10Z</dc:date>
    <item>
      <title>ArcSDESQLExecute problems</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcsdesqlexecute-problems/m-p/110698#M3784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm looking for anyone who has had experience with arcpy.ArcSDESQLExecute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use Python in ArcGIS 10.1 to return a selected set from an ArcSDE/SQL Server table and write it out to a new table in a file geodatabase. Right now I'm just doing some basic testing to see if I can get it to work correctly because at 9.3.1 there was a serious bug related to the handling of NULL values. That issue appears to be fixed, but now I'm having a different problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The new issue I'm having with ArcGIS 10 version is that the returned object (list of lists) causes a Visual C++ error when the object is deleted. Doesn't matter when I delete the list object or if I let&amp;nbsp; Python clean up after executing the script. It will throw that error and I have to kill the application. I've tried running from ArcCatalog and ArcMap as an ArcTool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There seems to be some relationship with the number of records returned. If I only do a few hundred, the script will usually exit successfully. I've tested with several hundred thousand records in different tables and don't see the client running out of memory and I can iterate through the list without any problems and write everything to a new table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried pausing the script for a few seconds at different points, but haven't seen any difference in performance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My test script is attached, any help would be greatly appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2011 15:30:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcsdesqlexecute-problems/m-p/110698#M3784</guid>
      <dc:creator>StevePeaslee</dc:creator>
      <dc:date>2011-08-23T15:30:10Z</dc:date>
    </item>
  </channel>
</rss>

