M
MIchael
I have a question regarding use the "using " statement for connection
object.
When use connection object, I used to put
using (SqlConnection conn=new SqlConnection("connectionstring"))
{
conn.open();
......
}
But then I saw one web
site(http://www.eggheadcafe.com/PrintSearchContent.asp?LINKID=353) said when
use the using statement, the connection will be removed from the connection
pool, is it the case? Can some one point at a MSDN document describe this?
Thanks;
Mike
object.
When use connection object, I used to put
using (SqlConnection conn=new SqlConnection("connectionstring"))
{
conn.open();
......
}
But then I saw one web
site(http://www.eggheadcafe.com/PrintSearchContent.asp?LINKID=353) said when
use the using statement, the connection will be removed from the connection
pool, is it the case? Can some one point at a MSDN document describe this?
Thanks;
Mike