gpt4 book ai didi

java - JDBC 连接字符串与 selectMethod=cursor 断开连接

转载 作者:行者123 更新时间:2023-11-28 22:29:35 24 4
gpt4 key购买 nike

我正在尝试部署一个 JBoss webapp,它需要在 jdbc 驱动程序连接字符串中使用 selectMethod=cursor

但是当我尝试使用字符串中的这个连接到我的 mssql (2008) 数据库时,它只是在连接时超时。当我从我的连接字符串中删除 selectMethod=cursor 时,它工作/连接,但我的应用程序不工作并给我这个错误:[SQLServer JDBC Driver]Can't start a cloned在手动事务模式下连接。

我已经更新了我的 jdbc 驱动程序 - 测试了所有版本。

这是我的连接字符串:

jdbc:microsoft:sqlserver://127.0.0.1:1434;DatabaseName=xxxx;user=xxxx;password=xxxxx;selectMethod=cursor

谢谢。

最佳答案

我从使用 Microsoft jdbc 驱动程序切换到 jtds jdbc 驱动程序,它再次运行得非常好。

关于java - JDBC 连接字符串与 selectMethod=cursor 断开连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25940090/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com