To list data from the server, you can do something like this:
import arcpy
from arcpy import env
env.overwriteOutput = True
env.workspace = r"C:\Documents and Settings\cmathers\Application Data\ESRI\ArcCatalog\OSA@[email protected]"
fcList = arcpy.ListFeatureClasses()
# Copy shapefiles to a file geodatabase
#
for fc in fcList:
print fc
That's just one example of how you can use sde connection files. If you wanted to reference a feature class, you could do something like this:fc = r"C:\Documents and Settings\cmathers\Application Data\ESRI\ArcCatalog\OSA@[email protected]\<FeatureClassName>"Hope this helps.