--- title: "addBatch Method () | 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: - "SQLServerPreparedStatement.addBatch ()" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: 737c3785-e2d4-4b5c-8718-c0e435b50599 author: David-Engel ms.author: v-daenge --- # addBatch Method () [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Adds a set of parameters to the batch of commands for this [SQLServerPreparedStatement](../../../connect/jdbc/reference/sqlserverpreparedstatement-class.md) object. ## Syntax ``` public final void addBatch() ``` ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This addBatch method is specified by the addBatch method in the java.sql.PreparedStatement interface. ## See Also [addBatch Method (SQLServerPreparedStatement)](../../../connect/jdbc/reference/addbatch-method-sqlserverpreparedstatement.md) [SQLServerPreparedStatement Members](../../../connect/jdbc/reference/sqlserverpreparedstatement-members.md) [SQLServerPreparedStatement Class](../../../connect/jdbc/reference/sqlserverpreparedstatement-class.md)