AnsweredAssumed Answered

Does anyone have a python script that will help me update broken sde connections in multiple mxd's after a server migration?

Question asked by NELS9139 on Jul 23, 2019

We are currently in the process of going through a server migration and we have 1000's of mxd documents.  I am looking for a python script that will help me mass update .mxd's layers so I don't have to do the "Repair Data Sources" for each document.  


The mxd's are in multiple subfolders and all are connected to .sde versioned databases. 


I would like to update all the mxd's sde connections to the same version and then correct the "Instance Name" for the layers.


Current Server Name: dal-gissql is changing to gissql.


Any help would be appreciative #python .pyt