Guest User

Untitled

a guest
Mar 27th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. /**
  2. * @param args the command line arguments
  3. */
  4. public static void main(String[] args) {
  5.  
  6. //PARAMETROS("jdbc:derby://host:port//DB;user=?;password=?");
  7. Connection conn = null;
  8. try {
  9. conn = DriverManager.getConnection("jdbc:derby://localhost:1527/TESTE","root","root");
  10. System.out.println("Conectado com sucesso...");
  11.  
  12. } catch (SQLException ex) {
  13. System.out.println("Problema de conexao: " + ex);
  14. }
  15.  
  16.  
  17. //Statement sql = conn.createStatement();
  18.  
  19.  
  20. }
Add Comment
Please, Sign In to add comment