I need to compact and repair an Access database but I can't get the .ldb file to go away or the file lock to release.
I use the following code to close my connection:
After the above code executes, the .ldb file persists and I cannot compact repair the database.
Any ideas?
I use the following code to close my connection:
Code:
//This connection is opened elsewhere and used to query
//the database before it gets to this point
OleDbConnection con;
con.Close();
con.Dispose();
After the above code executes, the .ldb file persists and I cannot compact repair the database.
Any ideas?