| title | executeBatch Method (SQLServerPreparedStatement) |
|---|---|
| description | executeBatch Method (SQLServerPreparedStatement) |
| author | David-Engel |
| ms.author | davidengel |
| ms.date | 01/19/2017 |
| ms.service | sql |
| ms.subservice | connectivity |
| ms.topic | reference |
| apilocation | sqljdbc.jar |
| apiname | SQLServerPreparedStatement.executeBatch |
| apitype | Assembly |
[!INCLUDEDriver_JDBC_Download]
Submits a batch of commands to the database to be run. If all commands run successfully, returns an array of update counts.
public int[] executeBatch()
An array of ints that contains the update counts.
java.sql.BatchUpdateException
This executeBatch method is specified by the executeBatch method in the java.sql.Statement interface.
This method overrides SQLServerStatement.executeBatch.
SQLServerPreparedStatement Members
SQLServerPreparedStatement Class