T
Tony Johansson
Hello!
Here I use the using so an implicit close is automatically invoked.
using (TextWriter tw = new StreamWriter(new FileStream(STATISTIK,
FileMode.Append, FileAccess.Write)))
tw.WriteLine(myProduct + "," + year + ","+ month);
Now to my question is it possible to use the using in this case so I don't
have to use the close command
SqlConnection thisConnection = new SqlConnection(...);
SqlDataAdapter thisAdapter = new SqlDataAdapter (...);
....
....
thisConnection.Close();
//Tony
Here I use the using so an implicit close is automatically invoked.
using (TextWriter tw = new StreamWriter(new FileStream(STATISTIK,
FileMode.Append, FileAccess.Write)))
tw.WriteLine(myProduct + "," + year + ","+ month);
Now to my question is it possible to use the using in this case so I don't
have to use the close command
SqlConnection thisConnection = new SqlConnection(...);
SqlDataAdapter thisAdapter = new SqlDataAdapter (...);
....
....
thisConnection.Close();
//Tony