AnsweredAssumed Answered

Recently we did an upgrade from ArcGIS 10.2.2 to 10.3.1. Our Administrator has left the old server on because of other issues. I would still like to switch all database connections over to our new .sde from the old one. I have followed the "Updating and f

Question asked by abedowner on Nov 9, 2017
Latest reply on Nov 9, 2017 by jayanta.poddar

>>> import arcpy
... mxd = arcpy.mapping.MapDocument(r"P:\filepath_of_my_map_document.mxd")
... mxd.findAndReplaceWorkspacePaths("C:\Users\MyUsername\AppData\Roaming\ESRI\Desktop10.3\ArcCatalog\old server.sde", r"C:\Users\MyUsername\AppData\Roaming\ESRI\Desktop10.3\ArcCatalog\new server.sde")
... mxd.saveACopy(r"P:\filepath_of_my_map_document.mxd2.mxd")
... del mxd

Outcomes