C
CSharper
I have a using statement something like the following
try
{
using(SqlConnection cnn = ...)
{
}
catch(Exception e1)
{
}
What happens to the sqlconnection, if the sql statment inside the
using statement fails? Will it close the sql connection since it is
inside the using?
Thanks,
try
{
using(SqlConnection cnn = ...)
{
}
catch(Exception e1)
{
}
What happens to the sqlconnection, if the sql statment inside the
using statement fails? Will it close the sql connection since it is
inside the using?
Thanks,