hndlogic
02-17-2007, 12:27 AM
Hi
I need to ask, which one is better ?
1) Opening db connection on the top of page and closing it at the end.
2) Opening db connection and saving it in Session variable OR Application variable. And closing it only in global.asa Session_End event.
Which one is better. Also I need to know the advantages and disadvantages of these two.
Thanks.
I need to ask, which one is better ?
1) Opening db connection on the top of page and closing it at the end.
2) Opening db connection and saving it in Session variable OR Application variable. And closing it only in global.asa Session_End event.
Which one is better. Also I need to know the advantages and disadvantages of these two.
Thanks.