Class.forName("net.sourceforge.jtds.jdbc.Driver").newInstance();
DriverManager.registerDriver(new net.sourceforge.jtds.jdbc.Driver());
connection1=DriverManager.getConnection(url1,user,password1);
stm=connection1.createStatement();
String comma=",";
rs=stm.executeQuery(sql);
rsmd=rs.getMetaData();
我封装的JAVA调用sql数据库的关键代码,同一条sql代码,直接放查询分析器里面查询,只要3秒钟,JAVA里面5分钟都出不来,好郁闷呀
DriverManager.registerDriver(new net.sourceforge.jtds.jdbc.Driver());
connection1=DriverManager.getConnection(url1,user,password1);
stm=connection1.createStatement();
String comma=",";
rs=stm.executeQuery(sql);
rsmd=rs.getMetaData();
我封装的JAVA调用sql数据库的关键代码,同一条sql代码,直接放查询分析器里面查询,只要3秒钟,JAVA里面5分钟都出不来,好郁闷呀