Connection ?? please help

  • Thread starter Thread starter Joao Santa Barbara
  • Start date Start date
J

Joao Santa Barbara

Hi all
i´m doing a vb winforms application, and in my app i´m using the wizards to
create dataadapters,
but when i create a new form with a new dataadapter VB allways create a new
Connection.

so my question is

how can i create one single connection to the all app and still using the
wizards?

thks
JSB

PS: please remember that my connection string has to change in order to
install my app in other computers and in other network.
 
Joao:

I don't think you can using the wizards, but having those extra connections
isn't really a big deal. However, if you absolutely want to use one
connection, you can stick it in a module or class as a static property and
then just adjust your code to point to it. If you do this though, it will
overrite your code if you reconfigure the adapter so it may well be more
trouble than it's worth.

HTH,

Bill
 
Back
Top