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...
- @michaelfransen why ssis though? Disparate data sources? in reply to michaelfransen 1 hr ago
- @michaelfransen tsql is faster ;-) in reply to michaelfransen 3 hrs ago
- @williamweber no web team love? in reply to williamweber 17 hrs ago
- Finally reading "Fast Track to MDX" 17 hrs ago
- @philipthorson scrum. in reply to philipthorson 2 weeks ago
- 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



