Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.64 KB

File metadata and controls

49 lines (37 loc) · 1.64 KB
title addBatch Method (java.lang.String) | 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 (java.lang.String)
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid 093f6c3b-49a6-4043-9993-bd0482de04dd
author David-Engel
ms.author v-daenge

addBatch Method (java.lang.String)

[!INCLUDEDriver_JDBC_Download]

Adds the given SQL command to the current list of commands for this SQLServerPreparedStatement object.

Syntax

  
public void addBatch(java.lang.String sql)  

Parameters

sql

A String that contains an SQL statement.

Exceptions

SQLServerException

Remarks

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

Calling this method will result in an exception since the SQL statement for the SQLServerPreparedStatement object is specified when the object is created.

See Also

addBatch Method (SQLServerPreparedStatement)
SQLServerPreparedStatement Members
SQLServerPreparedStatement Class