Ciao a tutti, accedo ad un database SqlServer2008 con JDBC Driver 4.0
questo è il codice
quando arrivo all'istruzione rs = cmd.executeQuery("select * from abbb "); l'esecuzione si blocca, non riesco a capire. Non mi da nessun tipo di errore. Il db non è in locale è su un server in rete.codice:Connection con = null; try { Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance(); } catch (Exception ex) { Logger.getLogger(Amalux_BEView.class.getName()).log(Level.SEVERE, null, ex); } String codice; try { con = DriverManager.getConnection(connectionUrl); Statement stmt = con.createStatement(); if (!con.isClosed()) { Statement cmd = con.createStatement(); ResultSet rs; rs = cmd.executeQuery("select * from abbb "); .............. .............

Rispondi quotando