We have an excel file which contains a connection to a database to retreive data (with a select statement).
We want to update via a (preferrably powershell) script the connection string of that file to make it query another server instead.
So for exemple : I have report.xlsx file which connects to server A. I run update-connection.ps1 And when I open report.xlsx it now connects to server B.
Any idea how we could do that?
Thanks.