A
Atley
I have written an application in VB.NET 2003 and I occasionally get one form
not showing any data, because it is trying to open a connection to the
database before the last form has completely released it's hold on the db.
What is the best way to connect to the database?
Is it better to connect once at the beginning and leave the connection open
through the whole application. Will idividual datasets have problems
running into each other?
Or is it better to do it the way i have done it, connect only when you need
the data and then close the connection right away.
Which one is better, why?
Thanks
not showing any data, because it is trying to open a connection to the
database before the last form has completely released it's hold on the db.
What is the best way to connect to the database?
Is it better to connect once at the beginning and leave the connection open
through the whole application. Will idividual datasets have problems
running into each other?
Or is it better to do it the way i have done it, connect only when you need
the data and then close the connection right away.
Which one is better, why?
Thanks