I have an Excel document with several (50+) embedded SQL queries that get refreshed and update counts and query results. I need to change the server and the database that these queries run from and I was hoping there was a simpler way to do this than manually typing everything in. I have searched through some of the other questions here but I was unable to find something that matched what I am looking to do.
Most of my connection strings look like this:
DRIVER=SQL Server;SERVER=ServerName;UID=ThisisMe;Trusted_Connection=Yes;APP=Microsoft Office 2013;WSID=CEPC098JJN
What I need to add also, is the database which I believe looks like this:
Initial Catalog=DatabaseName
Any guidance on next steps on how to update all these connection strings is greatly appreciated.
dbname-valuesand in that way you can simple retrieve the file, find the name and use that as your connection string.