nestasoft

SDE connection properties are changed

Discussion created by nestasoft on May 1, 2012
Latest reply on May 8, 2012 by lars.kuhlmann
Hello,

I use the script bellow to change a connection SDE from MXD file, but it does not work.

import arcpy
mxd = arcpy.mapping.MapDocument(r"C:\Project\MyProjet.mxd")
mxd.findAndReplaceWorkspacePaths(r"C:\Project\OldCOnnection.sde",
                                 r"C:\Project\NewConnection.sde")
mxd.saveACopy(r"C:\Project\Project_V1.mxd")
del mxd

I need your help.

Outcomes