I'm trying to determine if it is acceptable to close the connection to a database in a class' destructor. My understanding is that I have no control over when the destructor is closed, but can I at least be certain that it will be closed by the time the program finishes executing. This is a small desktop application that connects to a local jet database. If it matters, I am using OleDb.