<% ResultSet rs;
Connection con;
PreparedStatement st;
String RL = "jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=chen";
String user = "";
String password ="";
try {
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
out.println("类实例化成功!");
out.println("liutao");
con = DriverManager.getConnection(RL, user, password);
out.println("创建连接对像成功!");
out.println("创建Statement成功!");
out.println("操作数据表成功!");
out.println("----------------!");
}
catch(ClassNotFoundException e)
{
out.println("没有找到类");
}
catch(SQLException ee)
{
out.println("失败");
}