Link to home
Start Free TrialLog in
Avatar of mcs26
mcs26

asked on

C# Change Connection String upon deployment

Hi,

I have built an WPF application. The application connects to SQL Server to retrieve some data. I wish to deploy my application on a friend’s computer. I have the exe file along with the msi file. I have a connection string in my settings.cs file that connects to my database, however my friends database will be in a different location to mine. What I would like to know is the best way to change the connection string when my friend goes to install the program on his computer?

Thanks for any help,
M
SOLUTION
Avatar of bearsomg
bearsomg

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial