Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static final String conne="jdbc:sqlserver://localhost:1433;databaseName=Hospitais;user=teste;password=teste";
- Connection conn=null;
- try{
- conn= DriverManager.getConnection(conne);
- System.out.println("Connected");
- }catch(SQLException e){
- System.out.println(e);
- }
Add Comment
Please, Sign In to add comment