How to programatically change the default geodatabase of an MXD

Discussion created by Hornbydd Champion on Oct 17, 2011

I can't find the interface that allows me to change the default geodatabase of an existing MXD, does it even exist? I found this thread but the Interface seems to be related to changing the default geodatabase at the Application level not an existing MXD.

Our network structure forces us to have a roaming profile with my documents there. This has serious detrimental affects on the performance of ArcMap and any geo-processing tools (very slow) but we found out that by setting the MXD's default database to one on the C:\ drive the tools speed up significantly. So I was looking for a way to batch process the update of this map document property but I am unable to find are hook into it!

Any ideas?