lxt008

 

java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Can't start a cloned connection while in manual transaction mode.解决办法

错误情况:
            java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Can't start a cloned connection while in manual transaction mode.
错误原因:
            (1)当你在一个SQL SERVER的JDBC连接上执行多个STATEMENTS的操作时.
            (2)设置了AutoCommit=false,并且使用 direct (SelectMethod=direct) 模式.
解决方法:
            (1)确保在你的连接上只有一个STATEMENT操作。
            (2)使用手动事务模式时,必须在连接字符串中加上SelectMethod=Cursor.

posted on 2008-05-05 16:25 江南散人 阅读(1962) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航:
 

导航

统计

常用链接

留言簿(1)

随笔分类

随笔档案

文章档案

搜索

最新评论

阅读排行榜

评论排行榜