Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 1.45 KB

File metadata and controls

52 lines (40 loc) · 1.45 KB
title executeBatch Method (SQLServerStatement) | 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
SQLServerStatement.executeBatch
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid fb034f63-2532-4da8-a1b0-bc125734585a
caps.latest.revision 11
author MightyPen
ms.author genemi
manager craigg

executeBatch Method (SQLServerStatement)

[!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 contain the update counts.

Exceptions

SQLServerException

java.sql.BatchUpdateException

Remarks

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

After submitting commands to the database, this method clears any command in the batch.

See Also

SQLServerStatement Members
SQLServerStatement Class