my dog learned polymorphism
The moose likes JDBC and Relational Databases and the fly likes Inserts using addBatch() and executeBatch() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Inserts using addBatch() and executeBatch()" Watch "Inserts using addBatch() and executeBatch()" New topic

Inserts using addBatch() and executeBatch()

Donna Reschke

Joined: Jul 05, 2001
Posts: 23
I've been using the stmt.addBatch() and stmt.executeBatch() statements to do multiple inserts in a table. We've recently converted our driver from Eda to DB2 and done upgrades to DB2. Since then, the stmt.addBatch() and stmt.executeBatch()statements are not working and give me Null Pointer Exceptions. Does anyone know anything about this or do you know how to get around it? I'd appreciate any input. Thanks
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
Thanks for re-registering, Donna. We really do appreciate it.
Anyway, this is much more likely to get an answer in the JDBC forum, which is all about database access, so I've moved it for you.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: Inserts using addBatch() and executeBatch()
It's not a secret anymore!