Changing "External Data" DSN Details to point to different server

K

KD

I've a number of spreadsheets that retrieve external data
from a SQL Server database. (These were written using the
wizard invoked by Data > Get External Data > New Database
Query ).

The database has been moved to a new server (which has a
different name). The DSN for the PC has been changed to
point to the correct location (Control Panel >
Administrative Tools > Data Sources) but the spreadsheet
still looks in the old location.

If the Microsoft Query had been saved (as a dqy file)
before returning the data to excel, I could modify this
with Notepad to correct the DSN it's using. However, for
a lot of these spreadsheets, there is no dqy file. How do
I change the DSN when it is embedded in the spreadsheet?


Thanks


KD.
 
J

Jamie Collins

...
I've a number of spreadsheets that retrieve external data
from a SQL Server database. (These were written using the
wizard invoked by Data > Get External Data > New Database
Query ).

The database has been moved to a new server (which has a
different name). The DSN for the PC has been changed to
point to the correct location (Control Panel >
Administrative Tools > Data Sources) but the spreadsheet
still looks in the old location.

If the Microsoft Query had been saved (as a dqy file)
before returning the data to excel, I could modify this
with Notepad to correct the DSN it's using. However, for
a lot of these spreadsheets, there is no dqy file. How do
I change the DSN when it is embedded in the spreadsheet?

This may help:

http://www.dicks-clicks.com/excel/ExternalData5.htm#ChangeConn

Jamie.

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top