It's not a secret anymore!
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
Author

Inserts using addBatch() and executeBatch()

Donna Reschke
Greenhorn

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
Sheriff

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 frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Inserts using addBatch() and executeBatch()
 
jQuery in Action, 3rd edition