准确的说应该是JSP连接MSSQL对吗?

解决方案 »

  1.   

    看错了不好意思 有专门给JAVA的MSSQL驱动的 如果不用也可以写ODBCJDBC啊
      

  2.   

    去微软的网站下载jdbc for mssqlserer。安装后将三个jar文件拷贝到你的发布目录下的web-inf下的lib目录。然后建立连接就可以了。具体的连接代码网上搜搜,很多的!
      

  3.   

    Class.forName("org.gjt.mm.mysql.Driver").newInstance(); 
    String url ="jdbc:mysql://localhost/myDB?user=soft&password=soft1234&useUnicode=true&characterEncoding=8859_1" 
    //myDB为数据库名 
    Connection conn= DriverManager.getConnection(url); 如果是连接池 先启动tomcat
    在http://127.0.0.1:8080/tomcat-docs/jndi-datasource-examples-howto.html
    中有帮助