Changing SDE Data Sources

Discussion created by johnjmax on May 16, 2012
Latest reply on Apr 11, 2019 by joseph.jose
I have hundreds of mxd's with broken links due to migration to a different SDE server.  I know how to change to the new SDE connection using the findAndReplaceWorkspacePaths method.  My problem is that the Feature Dataset that the Feature Classes were previously under is renamed in the new SDE database.  This causes all of the links to still be broken.

Is there a way to fix this programmatically using Python?  I am a newbie, so any code examples would be appreciated.