This code is creating an sde connection file correctly but when I try and get a list of the feature classes it says that there are 0, which is not the case. What am I doing wrong to get a connection to SDE in python?
arcpy.CreateArcSDEConnectionFile_management(folderName, fileName, serverName, serviceName, databaseName, authType, username, password, saveUserInfo, versionName, saveVersionInfo)
env.workspace = "C:/temp/gpCon.sde"
fcs = arcpy.ListFeatureClasses()
for fc in fcs:
print fc