P
pratham
Hi and regards
What is best method to have an connection to sql, iam using sqlserver
1. have an sqlconnection open when the application start event in
global.asax so that i dont have to open it in each method where i
require to open an connection
2. open an connection in seesion so that, it is available in session of
the user thorugh out
3. open an connection in each method and close after the requried
operation is completed
which is better
as per the 3rd method ... doest openning and closing in each method is
a bad??
Comments expected
What is best method to have an connection to sql, iam using sqlserver
1. have an sqlconnection open when the application start event in
global.asax so that i dont have to open it in each method where i
require to open an connection
2. open an connection in seesion so that, it is available in session of
the user thorugh out
3. open an connection in each method and close after the requried
operation is completed
which is better
as per the 3rd method ... doest openning and closing in each method is
a bad??
Comments expected