Apart from the Scott's good reply I would suggest you to embedd Open/Close
into try/finally statement.
conn.Open();
try
{
...
}
finally
{
conn.Close();
}
Also, connection implements IDisposable, thus you might call it at the end
(even if it does nothing - it could do something in the future).
Btw, Dispose also closes connection:
using (OleDbConnection conn = new OleDbConnection(...))
{
}
Is enough to sleep well.
--
Miha Markic [MVP C#] - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com
"Mark" <(E-Mail Removed)> wrote in message
news:uhPa$(E-Mail Removed)...
> Using ASP.Net to read/write to an Access DB on a webserver.
> How can I check to make sure I haven't left any connections open ? I
> have physical access to the server if I need to check it there. I really
> want to verify all is well before I go live with it.
>
> Thanks,
> Mark
>
>