title | description | author | ms.author | ms.date | ms.service | ms.subservice | ms.topic | apilocation | apiname | apitype |
---|---|---|---|---|---|---|---|---|---|---|
execute Method (java.lang.String) |
execute Method (java.lang.String) |
David-Engel |
v-davidengel |
01/19/2017 |
sql |
connectivity |
reference |
sqljdbc.jar |
SQLServerPreparedStatement.execute (java.lang.String) |
Assembly |
[!INCLUDEDriver_JDBC_Download]
Runs the given SQL statement, which can return multiple results.
public final boolean execute(java.lang.String sql)
sql
A String that contains an SQL statement.
true if the statement returns a result set. false if it returns an update count or no result.
This execute method is specified by the execute method in the java.sql.Statement interface.
This method overrides the execute method that is found in the SQLServerStatement class.
Calling this method will result in an exception since the SQL statement for the SQLServerPreparedStatement object is specified when the object is created.
execute Method (SQLServerPreparedStatement)
SQLServerPreparedStatement Members
SQLServerPreparedStatement Class