I have an ASP app that connects to a SQL database. Most of my database connections occur at the top of the page, but some of them need to occur farther down the page. I've tried to use the 'Declare late, release early' but this isn't possible sometimes.
So, my question is: is it better to have 1 connection that stays open for use thru the entire page or have many connections that are opened for brief periods of time?
Usually, I have 1 for a majority of the work at the top of the page, and then maybe a max of 8 opened and then closed further down.
Thanks,
Earme
So, my question is: is it better to have 1 connection that stays open for use thru the entire page or have many connections that are opened for brief periods of time?
Usually, I have 1 for a majority of the work at the top of the page, and then maybe a max of 8 opened and then closed further down.
Thanks,
Earme