Hello, i run the following Code:
String url = "jdbc:ucanaccess://" + dbPath + ";openExclusive=true;immediatelyReleaseResources=true;singleconnection=true"; try { long startTime = new Date().toInstant().toEpochMilli(); UcanaccessConnection con = (UcanaccessConnection)DriverManager.getConnection(url); long endTime = new Date().toInstant().toEpochMilli(); System.out.println("Creating connection took: " + (endTime-startTime) + " ms"); startTime = new Date().toInstant().toEpochMilli(); Statement st = con.createStatement(); st.execute("Select * from UDPDATA"); endTime = new Date().toInstant().toEpochMilli(); System.out.println("Statement took: " + (endTime-startTime) + " ms"); st.close(); } catch (SQLException e) { e.printStackTrace(); }
And then my program ends. But the .ldb File is still there. I also already tried con.close() and con.unloadDB() booth didnt helped.
Log in to post a comment.
Hello,
i run the following Code:
And then my program ends. But the .ldb File is still there. I also already tried con.close() and con.unloadDB() booth didnt helped.
Last edit: Scheuraa 2024-11-26