Sunday, March 6, 2011

Change the connection string of a bound data set during runtime.

Is it possible to change the connection string of a bound dataset during runtime?

I have created an application in my laptop, and the server host of my connection is localhost, but when I deploy it in another computer, I wanted my application to a database that resides in another server.

From stackoverflow
  • If you choose to store the connection string in the Settings file, it is possible. You'll have to override the getter for the connection string. See this page for a full explanation in C#. You should be able to take the same concept and port it to VB.

0 comments:

Post a Comment