In a Python script that I use to publish ArcGIS 10.0 Geoprocessing Services I have some code:
arcpy.AddMessage("If process hangs here, check for ArcSDE connections issue by trying to open " + mapFile + " in ArcMap")
mxd = arcpy.mapping.MapDocument(mapFile)
The reason I have it is that from time to time the maximum number of SDE Connections that the server can support may have been exceeded.
Before I hit this I would like to have ArcPy test:
- If the SDE Connection can be reached at all; and
- If the SDE Connection is to an ArcSDE which is responding within a reasonable time.
Does ArcPy have any means of testing SDE connections before trying to use them?