Changing Server Names in Excel 2007 Embedded Workbook Connections
Ok, so you want to migrate servers, eh? Well - all your business users pry have a couple thousand Pivot Reports lying around that point to the old server. We need to point all references to the old server at the new server.
There are two places these references exist (afaik) - The My Data Sources folder (Windows XP / Excel 2007) which holds all of the odc objects for the logged in user, and the real pain - Embedded data sources in Excel Workbooks.
For the odc objects - you can just loop through the My Data Sources folder files and do a little find/replace action.
For the Excel files - we need to first find all the files, then loop through them and hunt for embedded Connections. Once we find a connection, we can just blindly replace occurrences of the old server name with the new server name. The first thing we need here is a function we can call recursively to go hunt down all the excel files - then we loop through and play with the connections (when found).
Social Networks
Recent Posts
- SSAS Cache Isn’t Making Cents
- Uncivil UNIONs
- Hiding SSRS Schedule Jobs In SSMS
- SSIS, BIDS and 64bit System DSNs: Who’s on first?
- Monitoring and Starting Data Collector Sets with Powershell
Bloggers of Note
Family
People who take my money
Categories
- Golf (2)
- How-to Guides (5)
- Scripts & Code (53)
- Thoughts (9)
Archives
- February 2012 (2)
- January 2012 (1)
- November 2011 (1)
- October 2011 (3)
- July 2011 (2)
- June 2011 (1)
- April 2011 (7)
- November 2010 (2)
- October 2010 (1)
- April 2010 (1)
- March 2010 (1)
- February 2010 (3)
- January 2010 (1)
- December 2009 (1)
- November 2009 (1)
- October 2009 (3)
- September 2009 (2)
- May 2009 (4)
- April 2009 (1)
- March 2009 (8)
- February 2009 (1)
- November 2008 (4)
- October 2008 (1)
- September 2008 (4)
- July 2008 (2)
- June 2008 (1)
- April 2008 (1)
- October 2007 (1)



