Im building a large database call using PreparedStatement
that has 2000+ parameter markers.
Im getting this error
Caused by: java.sql.SQLException: Prepared or callable statement has more than 2000 parameter markers.
at net.sourceforge.jtds.jdbc.SQLParser.parse(SQLParser.java:1139)
at net.sourceforge.jtds.jdbc.SQLParser.parse(SQLParser.java:156)
at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.<init>(JtdsPreparedStatement.java:107)
Caused by: java.sql.SQLException: Prepared or callable statement has more than 2000 parameter markers.
I tried searching the API Docs and google but couldnt find how to configure this.
Does anyone know if it is possible to up this limit? I am aware it is going to be a slow database call but that is fine for now.
Also will this cause me any issues in the long run, would I be better off running it in batches?