再发数据库连接问题,jdbc连sql server,发到连上为止!
程序:
<%
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
out.print("OK");
String url="jdbc:microsoft:sqlserver://server:1433;DatabaseName=test";
String user="sa";
String password="";
Connection conn= DriverManager.getConnection(url,user,password);
conn.close();
%>
错误:
javax.servlet.ServletException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]?? 'sa' ?????