G
Guest
I have written several ASP.NET applications and web services that open
ADO.NET connections. I rigorously follow the following programming construct.
SqlConnection sqlConn;
try
{
...
sqlConn.Open();
...
}
catch(Exception err)
{
}
finally
{
if (sqlConn.State == ConnectionState.Open)
{
sqlConn.Close();
}
}
However, when I look at the DB Server Processes in Enterprise Manager I see
the one or more connection still open, even after I have close the brower
session or shutdown the web service client. These connections can remain
open for a half hour or more. What is going on?
ADO.NET connections. I rigorously follow the following programming construct.
SqlConnection sqlConn;
try
{
...
sqlConn.Open();
...
}
catch(Exception err)
{
}
finally
{
if (sqlConn.State == ConnectionState.Open)
{
sqlConn.Close();
}
}
However, when I look at the DB Server Processes in Enterprise Manager I see
the one or more connection still open, even after I have close the brower
session or shutdown the web service client. These connections can remain
open for a half hour or more. What is going on?