主题:急!急!急!
哪位知道jsp与sql2005如何连接啊,以下是小弟参考其他书写得,但是老是出现错误:
com.microsoft.sqlserver.jdbcSQLServerDriver(错误提示)
主要代码:
String Driver="com.microsoft.sqlserver.jdbcSQLServerDriver";
String url="jdbc:sqlserver://localhost:1433;DatabaseName=Report_card";
String user="Administrator";
String password="";
Class.forName(Driver).newInstance();
Connection conn=DriverManager.getConnection(url,user,password);
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
String sql="select * from user";
ResultSet rs=stmt.executeQuery(sql);
请大家帮帮忙!!!!!!
com.microsoft.sqlserver.jdbcSQLServerDriver(错误提示)
主要代码:
String Driver="com.microsoft.sqlserver.jdbcSQLServerDriver";
String url="jdbc:sqlserver://localhost:1433;DatabaseName=Report_card";
String user="Administrator";
String password="";
Class.forName(Driver).newInstance();
Connection conn=DriverManager.getConnection(url,user,password);
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
String sql="select * from user";
ResultSet rs=stmt.executeQuery(sql);
请大家帮帮忙!!!!!!