Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC Connection String with selectMethod=cursor breaks connection to MS SQL Server 2008

 
Abbey Hunt
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to deploy a JBoss webapp that requires selectMethod=cursor in the jdbc driver connection string.

But when I try connecting to my mssql (2008) database with this in the string, it just timesout when connecting. When I remove selectMethod=cursor from my connection string, it works/connects, but my app doesn't work and gives me this error: [SQLServer JDBC Driver]Can't start a cloned connection while in manual transaction mode.

I have already updated my jdbc driver - tested all versions.

Here is my connection string:

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

Thanks.
 
Abbey Hunt
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I switched from using a microsoft jdbc driver to jtds jdbc driver and it works wonderfully again.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic