Runs the given SQL statement, which can return multiple results.

public final boolean execute(java.lang.String sql)

Parameters

sql

A string that contains an SQL statement.

Return Value

True if the statement returns a result set. False if it returns an update count or no result.

Exceptions

SQLServerException

Remarks

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.

See Also