G
Guest
Hi All;
I'm currently building an application as a hobby/learning experience for
keep track of different types of collections i have. the app is SDI but would
have multiple tabbed panes, dataviews and controls that i am creating. the
back end of the app is an access database. many of the different controls i
am creating rely on data from the DB. i am at the stage where i need to
decide how to setup the DB connections. here is my question(s).
is it better to have one persistant connection for the length of time that
the app runs and pass it to every control?.... or
is better to open and close the conection every time i need to and let each
control handle it's own connections?.... or
create a DB class that handles all the DB processing and just instatiate a
new object for each control.
ANy help would be very appreciated.
I'm currently building an application as a hobby/learning experience for
keep track of different types of collections i have. the app is SDI but would
have multiple tabbed panes, dataviews and controls that i am creating. the
back end of the app is an access database. many of the different controls i
am creating rely on data from the DB. i am at the stage where i need to
decide how to setup the DB connections. here is my question(s).
is it better to have one persistant connection for the length of time that
the app runs and pass it to every control?.... or
is better to open and close the conection every time i need to and let each
control handle it's own connections?.... or
create a DB class that handles all the DB processing and just instatiate a
new object for each control.
ANy help would be very appreciated.