addBatch Method (java.lang.String)

Download JDBC driver

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