Hello,
I am having difficulty connecting to my enterprise geodatabase and reading data.
My code below is unable to read the feature class.
myWorkspace = 'C:/xxx/Connection.sde'
# myWorkspace = 'Database Connections/Connection'
arcpy.env.workspace = myWorkspace
featureClassPath = "myGIS.DBO.myData"
print (str(arcpy.Exists(featureClassPath)));
When I log into ArcMap I usually have to click on my SDE connection before it just opens.
What am I missing?
Strangely, this code will run fine in ArcMap but not when I run it through IDLE.