webreport

博客园 首页 新随笔 联系 订阅 管理
  sqlserver2005数据库链接
  上微软网站下载sqlserver2005 jdbc Driver 包
  
  1、将Microsoft SQL Server 2005 JDBC Driver\sqljdbc_1.2\chs\sqljdbc.jar包 copy到发布系统 的 web-inf\lib目录中
  2、将Microsoft SQL Server 2005 JDBC Driver\sqljdbc_1.2\chs\auth\x86\sqljdbc_auth.dll 文件copy到 windows\system32目录
  
  web-inf\fcconfig.xml 文件中的连接字符串如下设置
    <ds name="fhjtest" dbType="sqlserver"
   type="jdbc" jdbcDriver="com.microsoft.sqlserver.jdbc.SQLServerDriver" jdbcUrl="jdbc:sqlserver://localhost:1433;databaseName=eformtest;integratedSecurity=true;" user="sa" password="small" />  
 注意:
 jdbcDriver="com.microsoft.sqlserver.jdbc.SQLServerDriver"
 jdbcUrl="jdbc:sqlserver://localhost:1433;databaseName=eformtest;integratedSecurity=true;"
 与sqlserver2000的写法稍有不同
posted on 2010-01-02 15:08  web报表  阅读(1667)  评论(0编辑  收藏  举报