Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 1.62 KB

File metadata and controls

56 lines (44 loc) · 1.62 KB
title executeBatch Method (SQLServerPreparedStatement) | Microsoft Docs
ms.custom
ms.date 01/19/2017
ms.prod sql
ms.prod_service drivers
ms.service
ms.component jdbc
ms.reviewer
ms.suite sql
ms.technology
drivers
ms.tgt_pltfrm
ms.topic article
apiname
SQLServerPreparedStatement.executeBatch
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid 8418167e-cbd2-464d-b118-73cdd76080ed
caps.latest.revision 10
author MightyPen
ms.author genemi
manager jhubbard
ms.workload Inactive

executeBatch Method (SQLServerPreparedStatement)

[!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.

Syntax

  
public int[] executeBatch()  

Return Value

An array of ints that contains the update counts.

Exceptions

SQLServerException

java.sql.BatchUpdateException

Remarks

This executeBatch method is specified by the executeBatch method in the java.sql.Statement interface.

This method overrides SQLServerStatement.executeBatch.

See Also

SQLServerPreparedStatement Members
SQLServerPreparedStatement Class