ctilly

Script Crashing Python

Discussion created by ctilly on May 21, 2013
Latest reply on May 23, 2013 by ctilly
I'm attempting to use the ArcSDESQLExecute class to run a simple query but when I do it completely crashes Python each time.  Below is the simple script I'm testing.  Any ideas on what is going on here?  I don't find any references in the forums of anyone else with this problem so I'm stuck.


import arcpy
conn = arcpy.ArcSDESQLExecute("C:\Projects\blah\myconnection.sde")
return = conn.execute("select * from SETTLEMENT where objectid < 50")

Outcomes