wood burning stoves 2.0*
The moose likes JDBC 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Inserts using addBatch() and executeBatch()
 
Similar Threads
Inserting Batch Statements
executing an INSERT statement using a PreparedStatement
how to do multiple insert
Can I use a single statement while autocommit is false.
multiple prepared statemnets using executeBatch