Determining If a Database Supports Batching

With batch updating, a set of SQL statements is assembled and then sent altogether to the database for execution. Batch updating can improve performance.
try { DatabaseMetaData dmd = connection.getMetaData(); if (dmd.supportsBatchUpdates()) { // Batching is supported } else { // Batching is not supported } } catch (SQLException e) { }

Post a comment

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image. Ignore spaces and be careful about upper and lower case.