Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 1.55 KB

File metadata and controls

52 lines (40 loc) · 1.55 KB
title executeBatch Method (SQLServerPreparedStatement) | Microsoft Docs
ms.custom
ms.date 01/19/2017
ms.prod sql
ms.prod_service connectivity
ms.reviewer
ms.suite sql
ms.technology connectivity
ms.tgt_pltfrm
ms.topic conceptual
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 craigg

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