Writing a script to replace the datasource in a project. I have tried doing this by replacing the .sde file path on the apex object. Tried by replacing at the map level and also at the layer level. none of these methods work. It runs without error but open the project back up and everything still pints to the original source.
Following samples located here:
Updating and fixing data sources—ArcPy | ArcGIS Desktop
Has anyone ever gotten this to actually work?