Guest User

Untitled

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