Students write java program information inquiry

Users questions: Is a test job, to do a connect to the database query process. Process right, but after the point query java.sql.SQLException: [Microsoft] [ODBC Driver Manager] Invalid cursor state error. Expert help, thank you! Part of the generation of emand){try{Class.forName( sun.jdbc.odbc.JdbcOdbcDriver );Stringls= select*fromSwheresno= +snotf.getT ext();Connectioncon=DriverManager.getConnection(url,user,password);Statementsta=con.createStatement( sex ));birthday1.setText(rs.getString( birthday ));nation1.setText(rs.getString( nation ));place1.se tText(rs.getString( place ));address1.setText(rs.getString( address ));post1.setText(rs.getString( p ost ));clname1.setText(rs.getString( clname ));dorm1.setText(rs.getString( dorm ));phone1.setText(rs .getString( phone ));email1.setText(rs.getString( email ));remark1.setText(rs.getString( remark ));} catch(SQLExceptionsqle){System.out.println(sqle.toString());}catch(Exceptionex){System.out.println(e x.toString ());}}}}
Experts answer: you determine privateStringurl = "jdbc: odbc: student"; ** database connection problems privateStringuser = "sa"; pri vateStringpassword = "student"; how this problem can read that data? I did not use Java to be a graphic web, but I do database calls is still the same. I suggest you look jdbc
  • This information provided by the users.Thanks!