Original User: keoeHi,I have moved som data from one ArcSDE-geodatabase to another. In the new geodatabase the feature classes has new owner. With the code I have change to a new connection file but how to change the owner? The feature classes has the same name as beforepath = u'C:/temp/Test/'
for dir, subdirs, files in os.walk(path):
for f in files:
if f.endswith('.mxd'):
filename = os.path.join(dir, f)
print filename
mxd = arcpy.mapping.MapDocument(filename)
mxd.findAndReplaceWorkspacePaths(r"C:\CONNECTIONS\OLD_CONNECTION.SDE", r"C:\CONNECTIONS\NEW_CONNECTION.sde", False)
mxd.save()