TechNet
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

executeBatch Method (SQLServerPreparedStatement)

 

DownloadDownload JDBC Driver

Submits a batch of commands to the database to be run. If all commands run successfully, returns an array of update counts.

  
public int[] executeBatch()  

An array of ints that contains the update counts.

SQLServerException

java.sql.BatchUpdateException

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

The SQL Server JDBC Driver 3.0 is compliant with the JDBC 4.0 recommendation that a call to the CallableStatement.executeBatch method (inherited from PreparedStatement) will throw a BatchUpdateException if the stored procedure accepts OUT or INOUT parameters or returns something other than an update count.

This method overrides SQLServerStatement.executeBatch.

SQLServerPreparedStatement Members
SQLServerPreparedStatement Class

Community Additions

ADD
Show:
© 2016 Microsoft