Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.25 KB

File metadata and controls

43 lines (31 loc) · 1.25 KB
title executeBatch Method (SQLServerStatement)
description executeBatch Method (SQLServerStatement)
author David-Engel
ms.author davidengel
ms.date 01/19/2017
ms.service sql
ms.subservice connectivity
ms.topic reference
apilocation sqljdbc.jar
apiname SQLServerStatement.executeBatch
apitype Assembly

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 int 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