上一篇:jUDDI 简单安装使用 >>
A problem when connect MSSQL with transaction.
Problem: Could not load object: [Microsoft][SQLServer 2000 Driver for JDBC]Can@#t start a cloned connection while in manual transaction mode. ===============================================
Solve:
If you pass "SelectMethod=cursor" attribute in connectio url, will allow more than one active statement per connection." jdbc:microsoft:sqlserver://localhost:1433;SelectMethod=cursor;","user","pwd"The reason for this is;When SelectMethod is set to direct, SQL Server does not support multiple active statements on a single connection within a transaction; however, when auto-commit mode is enabled (the default), the Microsoft SQL Server JDBC driver provides the ability to have multiple JDBC statements open on a single JDBC connection. This is done by cloning physical SQL Server connections as needed. To avoid cloning physical SQL Server connections in this circumstance, you should create only one Statement, PreparedStatement, CallableStatement, or DatabaseMetaData object per JDBC Connection object. Be sure to invoke the "close" methods on these objects when you are finished with them, that is, before creating another object of the types described.
下一篇:Struts中的Action类的工作机制 >>
相关文章:
- · [Eclipse笔记]Eclipse真的是商用IDE的杀手吗?
- · 的确不错的iBATIS SQL Maps
- · struts超简单入门(三)
- · struts超简单入门(二)
- · JBuilder2005+JBoss-4.0.2RC1+J2SDK1.5+Log4j 开发Session Bean例解(4)
- · JBuilder2005+JBoss-4.0.2RC1+J2SDK1.5+Log4j 开发Session Bean例解(3)
- · JBuilder2005+JBoss-4.0.2RC1+J2SDK1.5+Log4j 开发Session Bean例解(2)
- · Spring Framework 1.2 RC1 发布
- · JBuilder2005+JBoss-4.0.2RC1+J2SDK1.5+Log4j 开发Session Bean例解(1)
- · 最终还是手工输出XML对象可靠
- · 选择jsp而不是servlet作为BS前台主流方案是JAVA的战略性方向错误
- · java开源项目研究 1. 引子
- · Tomcat集群的三种负载均衡方式优缺点对照。
- · 初探Eclipse结合Lomboz开发EJB-Eclipse环境搭建
- · TIJ阅读笔记(第十一章)
- · 关于Java的一些 工具,类库,框架......
- · 今天总算看完了log4j,心情不错!把自己的学习笔记拿出来给大家共享一把
- · Annotations中文翻译
- · 使用dao.Processor管理数据持久化对象
- · 在Unix/Linux上令(java)JVM支持中文输出
- · 简单的Oracle存储过程的创建方法(菜鸟级)
- · 利用游标返回结果集的的例子(Oracle 存储过程)
- · 《Java极限编程》(Java Tool for Extreme Programming)读书笔记 (4)
- · linux环境下Apache+Resin的配置
- · 实战 Eclipse ,Jigloo, PostgreSQL,JDBC 开发数据库查询应用系统起步
- · 使用request传递数据
- · 在nanowar中引入AOP
- · 格式化输入日期时间控件 JieFormattedDateBox
- · webshpere studio application developer 中 jndi 访问DATASOURCE DB.7.2
- · Jmeter使用之脚本录制回放
- · jad文件的错误代码,分享
- · 最安全的加密算法 (摘自温少的blog)
- · Eclipse Form程序设计指南(1)
- · J2EE学习过程(节选)
- · 新兴开放源码J2EE应用平台
- · struts 学习笔记(一)--搭建环境
- · struts超简单入门(-)
- · 《Java极限编程》(Java Tool for Extreme Programming)读书笔记 (2)
