zoukankan      html  css  js  c++  java
  • jdbc连接sqlserver2005数据库的设置

      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的写法稍有不同
  • 相关阅读:
    log4j日志配置
    map和java对象的转换方法
    阿里巴巴的json使用时的一些转换方法
    HttpClient发送Post和Get请求
    IT网站导航
    python学习
    git解决冲突
    协程
    Python实现协程
    异步任务神器 和定时任务Celery
  • 原文地址:https://www.cnblogs.com/webreport/p/1637849.html
Copyright © 2011-2022 走看看