scottsanpedro
Programmer
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
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