Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JDBC executeBatch() restriction???

Status
Not open for further replies.

luvcal

Programmer
Aug 10, 2001
54
US
Is there a restriction on the number of rows I am allowed to insert into a table using Statement.executeBatch()? I was able to insert 273 rows into a DB2 table, but anything greater than that resulted in a CLI0118E Invalid SQL syntax. SQLSTATE=37000 error. Please help me!!

Thanks a bunch
 
Luvcal,
As far as I am aware there is not a limit. I'd be more inclined to examine your 274th record for something weird
Marc
 
Hi

I have encountered the same problem
but with 2000 insert SQL.

I think maybe something to do with
the max length?

I am still looking for a solution

Jacinle
 
Jacinle,
I suspect you may have a JBDC/ODBC limit on the number of records that you are allowed to insert. 2000 is just to round a number!
hth
Marc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top