Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Script Crashing Python

$
0
0
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.


Code:

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


Viewing all articles
Browse latest Browse all 2485

Trending Articles