hi we have conveyed our some servers which has ArcGIS application and SDE on it to another server and its ip has changed. now when i want to open my .mxd file it tries to connect remote SDE with old connection settings and Opening old works really takes long time consequently i want to change my database connection in .mxd file .
is there any fast way to change sde settings programmatically with not open the .mxd file in arcmap?
import arcpy mxd = arcpy.mapping.MapDocument(r"C:\Users\arc\Desktop\election2011.mxd") brklist = arcpy.mapping.ListBrokenDataSources(mxd) print brklist
Above code realy takes along time. without this code i can open my .mxd file with same time above code and can change manually...