I know that the code below works for a Microsoft Access Database but I need to switch it to my remote SQL server.
try {
String driver = "net.ucanaccess.jdbc.UcanaccessDriver";
Class.forName(driver);
conn = DriverManager.getConnection("jdbc:ucanaccess://???SQLSERVERPATH???");
} catch (Exception e) {
System.out.println(e);
}
So where do I figure out what the server path is ?
The UCanAccess JDBC driver is only designed to work with data stored in Microsoft Access datbase files (.accdb, .mdb). It cannot be used to work with data in a SQL Server database. You will need to use a SQL Server JDBC driver for that (eg, this one ).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.