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
What I'm Doing...
- @philipthorson scrum. in reply to philipthorson 2 weeks ago
- @michaelfransen LOL. in reply to michaelfransen 2 weeks ago
- @williamweber you know I almost didn't test it for fear that it would get filtered to your deleted items before you even got off vacation in reply to williamweber 3 weeks ago
- when you have to put comments in the middle of your calculated measure to explain what it's doing, you've gone too far ;-) 2010-02-10
- @michaelfransen I'll miss your horrible parking skills. in reply to michaelfransen 2010-02-04
- More updates...
Recent Posts
- Script sp_configure Output To Migrate Settings Between SQL Servers
- Script RESTORE DATABASE … WITH MOVE Stub
- VersionOne Nag: Reminding Us To Burn Our Points
- Clone Analysis Services Partitions with PowerShell
- Trending SQL Server Agent Job Duration by Hour



