Excel data connection

G

GS80

Hi all,

I have a question relating to the Excel office data connections in Excel
2007. I have a file which contains numerous embedded connections pointing to
various sheets which create table/pivot table structures. I am using this
file in an application which refreshes the data and then uses the new data to
create various outputs. The question i have surrounds the ability to change
the connection string.

I can set the command text via my application and change this as required.
The problem i have is if i want to point the sources to another server. Is
there any way that i can set up a connection sting in my app.config file and
use this to change the connection string at runtime? my app is a .Net
application using C#.

Any help on this would be much appreciated as i'm having absolutely no luck.

Thanks in advance,

G
 

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