| title | executeBatch Method (SQLServerPreparedStatement) | Microsoft Docs | |
|---|---|---|
| ms.custom | ||
| ms.date | 01/19/2017 | |
| ms.prod | sql | |
| ms.prod_service | connectivity | |
| ms.reviewer | ||
| ms.technology | connectivity | |
| ms.topic | conceptual | |
| apiname |
|
|
| apilocation |
|
|
| apitype | Assembly | |
| ms.assetid | 8418167e-cbd2-464d-b118-73cdd76080ed | |
| author | David-Engel | |
| ms.author | v-daenge |
[!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