hi i need to connect my java program with the internet sql server my last version was with the file sqlite which take the database information from sql file in the same program folder my last code was
public static Connection createConn() throws SQLException, ClassNotFoundException{
Class.forName("org.sqlite.JDBC");
Connection c = DriverManager.getConnection("jdbc:sqlite:mhs.sqlite");
c.setAutoCommit(false);
return c;
}
how can i put my server link Allowance to my file ?? i dont need to use sql file on project i need to connect to the internet and take the data from my sql server
Aucun commentaire:
Enregistrer un commentaire