Question Dynamic Connection String

scottsanpedro

Member
Joined
Jan 24, 2009
Messages
21
Programming Experience
1-3
Hi,
I'm looking to change the connection string (To Sql Server) on the fly based on the computer name.
Just a normal IF ELSE based on that.
I want to leave the connection string settings in app.config if possible.
I have looked everywhere to see if I can do this!!
I have tried adding a new connection string in the my.settings files and try to code it to pick a different one based on the computer name.
Any ideas and different approaches??
Thanks to all in advance
Scott
 
Back
Top