Can't start a cloned connection exception

  • Share
  • Share

Applies to:
DBUnit

Description:
Occurs when using InsertIdentityOperation

Cause:
SelectMethod=cursor parameter is missing in the JDBC connection string.

JAVA-DBUnit ,

  1. admin
    March 20th, 2009 at 10:28 | #1

    If you are using the Microsoft driver (i.e. com.microsoft.jdbc.sqlserver.SQLServerDriver), you need to use the SelectMethod=cursor parameter in the JDBC connection string (as outlined by this JDBC thread). Your database Url would look something like:

    jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=mydb;SelectMethod=cursor

  1. No trackbacks yet.